Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev fix diskerr message, it needs the driver name, not t...
details: https://anonhg.NetBSD.org/src/rev/fb923cc490d0
branches: trunk
changeset: 339646:fb923cc490d0
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Sun Aug 02 07:25:40 2015 +0000
description:
fix diskerr message, it needs the driver name, not the device unit name.
diffstat:
sys/dev/dksubr.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r 172ab7bee5d0 -r fb923cc490d0 sys/dev/dksubr.c
--- a/sys/dev/dksubr.c Sun Aug 02 07:14:10 2015 +0000
+++ b/sys/dev/dksubr.c Sun Aug 02 07:25:40 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dksubr.c,v 1.67 2015/07/22 10:32:16 skrll Exp $ */
+/* $NetBSD: dksubr.c,v 1.68 2015/08/02 07:25:40 mlelstv Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 1999, 2002, 2008 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dksubr.c,v 1.67 2015/07/22 10:32:16 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dksubr.c,v 1.68 2015/08/02 07:25:40 mlelstv Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -289,7 +289,9 @@
struct disk *dk = &dksc->sc_dkdev;
if (bp->b_error != 0) {
- diskerr(bp, dksc->sc_xname, "error", LOG_PRINTF, 0,
+ struct cfdriver *cd = device_cfdriver(dksc->sc_dev);
+
+ diskerr(bp, cd->cd_name, "error", LOG_PRINTF, 0,
dk->dk_label);
printf("\n");
}
Home |
Main Index |
Thread Index |
Old Index