From 7c834707a3bc7d7a17ed43c7fddd63f3220406e8 Mon Sep 17 00:00:00 2001 From: jakllsch Date: Mon, 10 Jan 2011 21:26:38 +0000 Subject: [PATCH] When we fail to read a block computing the matching hash, it's nice to know what device and why. Also, drop comment that hasn't been valid since 1.12. --- sys/arch/x86/x86/x86_autoconf.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/sys/arch/x86/x86/x86_autoconf.c b/sys/arch/x86/x86/x86_autoconf.c index f06b335b5b68..d1b76713961a 100644 --- a/sys/arch/x86/x86/x86_autoconf.c +++ b/sys/arch/x86/x86/x86_autoconf.c @@ -1,4 +1,4 @@ -/* $NetBSD: x86_autoconf.c,v 1.52 2010/08/21 17:27:20 jmcneill Exp $ */ +/* $NetBSD: x86_autoconf.c,v 1.53 2011/01/10 21:26:38 jakllsch Exp $ */ /*- * Copyright (c) 1990 The Regents of the University of California. @@ -35,7 +35,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: x86_autoconf.c,v 1.52 2010/08/21 17:27:20 jmcneill Exp $"); +__KERNEL_RCSID(0, "$NetBSD: x86_autoconf.c,v 1.53 2011/01/10 21:26:38 jakllsch Exp $"); #include #include @@ -218,7 +218,6 @@ matchbiosdisks(void) #endif if (is_valid_disk(dv)) { n++; - /* XXXJRT why not just dv_xname?? */ snprintf(x86_alldisks->dl_nativedisks[n].ni_devname, sizeof(x86_alldisks->dl_nativedisks[n].ni_devname), "%s", device_xname(dv)); @@ -299,8 +298,8 @@ match_bootwedge(device_t dv, struct btinfo_bootwedge *biw) sizeof(bf), blk * DEV_BSIZE, UIO_SYSSPACE, 0, NOCRED, NULL, NULL); if (error) { - printf("findroot: unable to read block %" PRIu64 "\n", - blk); + printf("findroot: unable to read block %" PRId64 " " + "of dev %s (%d)\n", blk, device_xname(dv), error); goto closeout; } MD5Update(&ctx, bf, sizeof(bf));