Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc/stand/ofwboot Turn a printf into a DPRINTF(), ...



details:   https://anonhg.NetBSD.org/src/rev/c55c7e4156eb
branches:  trunk
changeset: 753628:c55c7e4156eb
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Apr 04 21:49:15 2010 +0000

description:
Turn a printf into a DPRINTF(), since we will very likely recover from
the condition (and it happens on stock install CDs)

diffstat:

 sys/arch/sparc/stand/ofwboot/ofdev.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 15beebe9a07c -r c55c7e4156eb sys/arch/sparc/stand/ofwboot/ofdev.c
--- a/sys/arch/sparc/stand/ofwboot/ofdev.c      Sun Apr 04 21:36:22 2010 +0000
+++ b/sys/arch/sparc/stand/ofwboot/ofdev.c      Sun Apr 04 21:49:15 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ofdev.c,v 1.27 2010/04/02 18:39:44 martin Exp $        */
+/*     $NetBSD: ofdev.c,v 1.28 2010/04/04 21:49:15 martin Exp $        */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -477,7 +477,10 @@
                             LABELSECTOR, DEV_BSIZE, b.buf, &read) != 0
                    || read != DEV_BSIZE
                    || (errmsg = getdisklabel(b.buf, &label))) {
-                       if (errmsg) printf("devopen: getdisklabel returned %s\n", errmsg);
+                       if (errmsg) {
+                               DPRINTF(("devopen: getdisklabel returned %s\n",
+                                       errmsg));
+                       }
                        /* Else try MBR partitions */
                        errmsg = search_label(&ofdev, 0, b.buf, &label, 0);
                        if (errmsg) {



Home | Main Index | Thread Index | Old Index