Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/landisk/landisk Use aprint_* instead of printf.



details:   https://anonhg.NetBSD.org/src/rev/4f092213a0b4
branches:  trunk
changeset: 998044:4f092213a0b4
user:      uwe <uwe%NetBSD.org@localhost>
date:      Sat Apr 06 00:09:09 2019 +0000

description:
Use aprint_* instead of printf.

diffstat:

 sys/arch/landisk/landisk/autoconf.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r 7c982d1dfd76 -r 4f092213a0b4 sys/arch/landisk/landisk/autoconf.c
--- a/sys/arch/landisk/landisk/autoconf.c       Sat Apr 06 00:05:47 2019 +0000
+++ b/sys/arch/landisk/landisk/autoconf.c       Sat Apr 06 00:09:09 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: autoconf.c,v 1.7 2012/10/27 17:17:58 chs Exp $ */
+/*     $NetBSD: autoconf.c,v 1.8 2019/04/06 00:09:09 uwe Exp $ */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.7 2012/10/27 17:17:58 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.8 2019/04/06 00:09:09 uwe Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -116,7 +116,7 @@
                 */
                if (error != ENXIO && error != ENODEV)
 #endif
-                       printf("match_bootdisk: can't open dev %s (%d)\n",
+                       aprint_error("match_bootdisk: can't open dev %s (%d)\n",
                            device_xname(dv), error);
                vput(tmpvn);
                return (0);
@@ -127,7 +127,7 @@
                 * XXX Can't happen -- open() would have errored out
                 * or faked one up.
                 */
-               printf("match_bootdisk: can't get label for dev %s (%d)\n",
+               aprint_error("match_bootdisk: can't get label for dev %s (%d)\n",
                    device_xname(dv), error);
                goto closeout;
        }
@@ -182,7 +182,7 @@
 
 bootdisk_found:
                        if (booted_device) {
-                               printf("WARNING: double match for boot "
+                               aprint_error("WARNING: double match for boot "
                                    "device (%s, %s)\n",
                                    device_xname(booted_device), device_xname(dv));
                                continue;
@@ -203,7 +203,7 @@
 
        findroot();
 
-       printf("boot device: %s\n",
+       aprint_normal("boot device: %s\n",
            booted_device ? device_xname(booted_device) : "<unknown>");
        rootconf();
 }



Home | Main Index | Thread Index | Old Index