Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/dkwedge print wedge announcement in one line instead...
details: https://anonhg.NetBSD.org/src/rev/d45ab48420c2
branches: trunk
changeset: 340853:d45ab48420c2
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Tue Oct 06 11:22:40 2015 +0000
description:
print wedge announcement in one line instead of two
diffstat:
sys/dev/dkwedge/dk.c | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
diffs (35 lines):
diff -r 0b377b8bd18f -r d45ab48420c2 sys/dev/dkwedge/dk.c
--- a/sys/dev/dkwedge/dk.c Tue Oct 06 10:21:08 2015 +0000
+++ b/sys/dev/dkwedge/dk.c Tue Oct 06 11:22:40 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dk.c,v 1.83 2015/08/25 11:08:59 pooka Exp $ */
+/* $NetBSD: dk.c,v 1.84 2015/10/06 11:22:40 jmcneill Exp $ */
/*-
* Copyright (c) 2004, 2005, 2006, 2007 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dk.c,v 1.83 2015/08/25 11:08:59 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dk.c,v 1.84 2015/10/06 11:22:40 jmcneill Exp $");
#ifdef _KERNEL_OPT
#include "opt_dkwedge.h"
@@ -464,10 +464,12 @@
sc->sc_state = DKW_STATE_RUNNING;
/* Announce our arrival. */
- aprint_normal("%s at %s: %s\n", device_xname(sc->sc_dev), pdk->dk_name,
- sc->sc_wname); /* XXX Unicode */
- aprint_normal("%s: %"PRIu64" blocks at %"PRId64", type: %s\n",
- device_xname(sc->sc_dev), sc->sc_size, sc->sc_offset, sc->sc_ptype);
+ aprint_normal(
+ "%s at %s: \"%s\", %"PRIu64" blocks at %"PRId64", type: %s\n",
+ device_xname(sc->sc_dev), pdk->dk_name,
+ sc->sc_wname, /* XXX Unicode */
+ sc->sc_size, sc->sc_offset,
+ sc->sc_ptype[0] == '\0' ? "<unknown>" : sc->sc_ptype);
return (0);
}
Home |
Main Index |
Thread Index |
Old Index