Source-Changes-HG archive

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

[src/trunk]: src/sys/dev Use aprint_error() where appropriate.



details:   https://anonhg.NetBSD.org/src/rev/88296189ebcc
branches:  trunk
changeset: 547080:88296189ebcc
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Tue May 13 02:56:13 2003 +0000

description:
Use aprint_error() where appropriate.

diffstat:

 sys/dev/md.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 28eac83f8e79 -r 88296189ebcc sys/dev/md.c
--- a/sys/dev/md.c      Tue May 13 02:41:27 2003 +0000
+++ b/sys/dev/md.c      Tue May 13 02:56:13 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: md.c,v 1.33 2002/12/11 16:24:38 atatat Exp $   */
+/*     $NetBSD: md.c,v 1.34 2003/05/13 02:56:13 thorpej Exp $  */
 
 /*
  * Copyright (c) 1995 Gordon W. Ross, Leo Weppelman.
@@ -46,7 +46,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: md.c,v 1.33 2002/12/11 16:24:38 atatat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: md.c,v 1.34 2003/05/13 02:56:13 thorpej Exp $");
 
 #include "opt_md.h"
 
@@ -129,7 +129,7 @@
 
 #ifdef DIAGNOSTIC
        if (ramdisk_ndevs) {
-               printf("ramdisk: multiple attach calls?\n");
+               aprint_error("ramdisk: multiple attach calls?\n");
                return;
        }
 #endif
@@ -146,7 +146,7 @@
 
                sc = malloc(sizeof(*sc), M_DEVBUF, M_NOWAIT|M_ZERO);
                if (!sc) {
-                       printf("ramdisk: malloc for attach failed!\n");
+                       aprint_error("ramdisk: malloc for attach failed!\n");
                        return;
                }
                ramdisk_devs[i] = sc;



Home | Main Index | Thread Index | Old Index