Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hp300/dev Use aprint_normal(9) and variants.
details: https://anonhg.NetBSD.org/src/rev/5537cc7799fc
branches: trunk
changeset: 762283:5537cc7799fc
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Fri Feb 18 19:15:43 2011 +0000
description:
Use aprint_normal(9) and variants.
diffstat:
sys/arch/hp300/dev/diofb.c | 12 ++++++------
sys/arch/hp300/dev/dnkbd.c | 18 +++++++++---------
sys/arch/hp300/dev/dvbox.c | 4 ++--
sys/arch/hp300/dev/gbox.c | 4 ++--
sys/arch/hp300/dev/hyper.c | 4 ++--
sys/arch/hp300/dev/rbox.c | 4 ++--
sys/arch/hp300/dev/topcat.c | 4 ++--
sys/arch/hp300/dev/tvrx.c | 4 ++--
8 files changed, 27 insertions(+), 27 deletions(-)
diffs (205 lines):
diff -r 50daf74717fa -r 5537cc7799fc sys/arch/hp300/dev/diofb.c
--- a/sys/arch/hp300/dev/diofb.c Fri Feb 18 19:15:06 2011 +0000
+++ b/sys/arch/hp300/dev/diofb.c Fri Feb 18 19:15:43 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: diofb.c,v 1.2 2011/02/12 16:40:29 tsutsui Exp $ */
+/* $NetBSD: diofb.c,v 1.3 2011/02/18 19:15:43 tsutsui Exp $ */
/* $OpenBSD: diofb.c,v 1.18 2010/12/26 15:40:59 miod Exp $ */
/*
@@ -305,16 +305,16 @@
{
struct wsemuldisplaydev_attach_args waa;
- printf(": %dx%d", fb->dwidth, fb->dheight);
+ aprint_normal(": %dx%d", fb->dwidth, fb->dheight);
if (fb->planes == 1)
- printf(" monochrome");
+ aprint_normal(" monochrome");
else
- printf("x%d", fb->planes);
+ aprint_normal("x%d", fb->planes);
if (descr != NULL)
- printf(" %s", descr);
- printf(" frame buffer\n");
+ aprint_normal(" %s", descr);
+ aprint_normal(" frame buffer\n");
fb->scrlist[0] = &fb->wsd;
fb->wsl.nscreens = 1;
diff -r 50daf74717fa -r 5537cc7799fc sys/arch/hp300/dev/dnkbd.c
--- a/sys/arch/hp300/dev/dnkbd.c Fri Feb 18 19:15:06 2011 +0000
+++ b/sys/arch/hp300/dev/dnkbd.c Fri Feb 18 19:15:43 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dnkbd.c,v 1.4 2011/02/12 16:41:54 tsutsui Exp $ */
+/* $NetBSD: dnkbd.c,v 1.5 2011/02/18 19:15:43 tsutsui Exp $ */
/* $OpenBSD: dnkbd.c,v 1.17 2009/07/23 21:05:56 blambert Exp $ */
/*
@@ -251,7 +251,7 @@
struct dnkbd_softc *sc = device_private(self);
struct frodo_attach_args *fa = aux;
- printf(": ");
+ aprint_normal(": ");
sc->sc_dev = self;
sc->sc_bst = fa->fa_bst;
@@ -275,7 +275,7 @@
/* probe for keyboard */
if (dnkbd_probe(sc) != 0) {
- printf("no keyboard\n");
+ aprint_normal("no keyboard\n");
return;
}
@@ -425,8 +425,8 @@
}
if (i > sizeof(rspbuf) || i == 0) {
- printf("%s: unexpected identify string length %d\n",
- device_xname(sc->sc_dev), i);
+ aprint_error_dev(sc->sc_dev,
+ "unexpected identify string length %d\n", i);
rc = ENXIO;
goto out;
}
@@ -448,15 +448,15 @@
memcpy(sc->sc_ident, rspbuf, i);
if (cold == 0)
- printf("%s: ", device_xname(sc->sc_dev));
- printf("model ");
+ aprint_normal_dev(sc->sc_dev, "");
+ aprint_normal("model ");
word = rspbuf;
for (i = 0; i < 3; i++) {
end = strchr(word, '\r');
if (end == NULL)
break;
*end++ = '\0';
- printf("<%s> ", word);
+ aprint_normal("<%s> ", word);
/*
* Parse the layout code if applicable
*/
@@ -495,7 +495,7 @@
}
word = end;
}
- printf("\n");
+ aprint_normal("\n");
}
/*
diff -r 50daf74717fa -r 5537cc7799fc sys/arch/hp300/dev/dvbox.c
--- a/sys/arch/hp300/dev/dvbox.c Fri Feb 18 19:15:06 2011 +0000
+++ b/sys/arch/hp300/dev/dvbox.c Fri Feb 18 19:15:43 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dvbox.c,v 1.2 2011/02/12 16:40:29 tsutsui Exp $ */
+/* $NetBSD: dvbox.c,v 1.3 2011/02/18 19:15:43 tsutsui Exp $ */
/* $OpenBSD: dvbox.c,v 1.13 2006/08/11 18:33:13 miod Exp $ */
/*
@@ -235,7 +235,7 @@
}
fbr = bus_space_vaddr(da->da_bst, bsh);
if (dvbox_reset(sc->sc_fb, sc->sc_scode, fbr) != 0) {
- printf(": can't map framebuffer\n");
+ aprint_error(": can't reset framebuffer\n");
return;
}
}
diff -r 50daf74717fa -r 5537cc7799fc sys/arch/hp300/dev/gbox.c
--- a/sys/arch/hp300/dev/gbox.c Fri Feb 18 19:15:06 2011 +0000
+++ b/sys/arch/hp300/dev/gbox.c Fri Feb 18 19:15:43 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gbox.c,v 1.2 2011/02/12 16:40:29 tsutsui Exp $ */
+/* $NetBSD: gbox.c,v 1.3 2011/02/18 19:15:43 tsutsui Exp $ */
/* $OpenBSD: gbox.c,v 1.15 2007/01/07 15:13:52 miod Exp $ */
/*
@@ -244,7 +244,7 @@
}
fbr = bus_space_vaddr(da->da_bst, bsh);
if (gbox_reset(sc->sc_fb, sc->sc_scode, fbr) != 0) {
- printf(": can't map framebuffer\n");
+ aprint_error(": can't reset framebuffer\n");
return;
}
}
diff -r 50daf74717fa -r 5537cc7799fc sys/arch/hp300/dev/hyper.c
--- a/sys/arch/hp300/dev/hyper.c Fri Feb 18 19:15:06 2011 +0000
+++ b/sys/arch/hp300/dev/hyper.c Fri Feb 18 19:15:43 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hyper.c,v 1.2 2011/02/12 16:40:29 tsutsui Exp $ */
+/* $NetBSD: hyper.c,v 1.3 2011/02/18 19:15:43 tsutsui Exp $ */
/* $OpenBSD: hyper.c,v 1.15 2006/04/14 21:05:43 miod Exp $ */
/*
@@ -187,7 +187,7 @@
}
fbr = bus_space_vaddr(da->da_bst, bsh);
if (hyper_reset(sc->sc_fb, sc->sc_scode, fbr) != 0) {
- printf(": can't map framebuffer\n");
+ aprint_error(": can't reset framebuffer\n");
return;
}
}
diff -r 50daf74717fa -r 5537cc7799fc sys/arch/hp300/dev/rbox.c
--- a/sys/arch/hp300/dev/rbox.c Fri Feb 18 19:15:06 2011 +0000
+++ b/sys/arch/hp300/dev/rbox.c Fri Feb 18 19:15:43 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rbox.c,v 1.2 2011/02/12 16:40:29 tsutsui Exp $ */
+/* $NetBSD: rbox.c,v 1.3 2011/02/18 19:15:43 tsutsui Exp $ */
/* $OpenBSD: rbox.c,v 1.14 2006/08/11 18:33:13 miod Exp $ */
/*
@@ -235,7 +235,7 @@
}
fbr = bus_space_vaddr(da->da_bst, bsh);
if (rbox_reset(sc->sc_fb, sc->sc_scode, fbr) != 0) {
- printf(": can't map framebuffer\n");
+ aprint_error(": can't reset framebuffer\n");
return;
}
}
diff -r 50daf74717fa -r 5537cc7799fc sys/arch/hp300/dev/topcat.c
--- a/sys/arch/hp300/dev/topcat.c Fri Feb 18 19:15:06 2011 +0000
+++ b/sys/arch/hp300/dev/topcat.c Fri Feb 18 19:15:43 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: topcat.c,v 1.3 2011/02/18 16:02:48 tsutsui Exp $ */
+/* $NetBSD: topcat.c,v 1.4 2011/02/18 19:15:43 tsutsui Exp $ */
/* $OpenBSD: topcat.c,v 1.15 2006/08/11 18:33:13 miod Exp $ */
/*
@@ -257,7 +257,7 @@
}
fbr = bus_space_vaddr(da->da_bst, bsh);
if (topcat_reset(sc->sc_fb, sc->sc_scode, fbr) != 0) {
- printf(": can't map framebuffer\n");
+ aprint_error(": can't reset framebuffer\n");
return;
}
}
diff -r 50daf74717fa -r 5537cc7799fc sys/arch/hp300/dev/tvrx.c
--- a/sys/arch/hp300/dev/tvrx.c Fri Feb 18 19:15:06 2011 +0000
+++ b/sys/arch/hp300/dev/tvrx.c Fri Feb 18 19:15:43 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tvrx.c,v 1.2 2011/02/12 16:40:29 tsutsui Exp $ */
+/* $NetBSD: tvrx.c,v 1.3 2011/02/18 19:15:43 tsutsui Exp $ */
/* $OpenBSD: tvrx.c,v 1.1 2006/04/14 21:05:43 miod Exp $ */
/*
@@ -120,7 +120,7 @@
}
fbr = bus_space_vaddr(da->da_bst, bsh);
if (tvrx_reset(sc->sc_fb, sc->sc_scode, fbr) != 0) {
- printf(": can't map framebuffer\n");
+ aprint_error(": can't reset framebuffer\n");
return;
}
}
Home |
Main Index |
Thread Index |
Old Index