Module Name:    src
Committed By:   martin
Date:           Sun Apr  4 21:49:15 UTC 2010

Modified Files:
        src/sys/arch/sparc/stand/ofwboot: ofdev.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/arch/sparc/stand/ofwboot/ofdev.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/sparc/stand/ofwboot/ofdev.c
diff -u src/sys/arch/sparc/stand/ofwboot/ofdev.c:1.27 src/sys/arch/sparc/stand/ofwboot/ofdev.c:1.28
--- src/sys/arch/sparc/stand/ofwboot/ofdev.c:1.27	Fri Apr  2 18:39:44 2010
+++ src/sys/arch/sparc/stand/ofwboot/ofdev.c	Sun Apr  4 21:49:15 2010
@@ -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) {

Reply via email to