summaryrefslogtreecommitdiff
path: root/sys/dev/ramdisk.c
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>1996-10-10 22:25:05 +0000
committerchristos <christos@NetBSD.org>1996-10-10 22:25:05 +0000
commit5d85fa8122b05ab18385b13a79e7ace13fbe6919 (patch)
tree9c14c1cbbb20fc933a2d160805d8893348fb1ac4 /sys/dev/ramdisk.c
parent4c14cd79b2b5c976294d247d546e63fb42460dfb (diff)
printf -> kprintf, sprintf -> ksprintf
Diffstat (limited to 'sys/dev/ramdisk.c')
-rw-r--r--sys/dev/ramdisk.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/ramdisk.c b/sys/dev/ramdisk.c
index 07f6ae9871d..4577b302edf 100644
--- a/sys/dev/ramdisk.c
+++ b/sys/dev/ramdisk.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ramdisk.c,v 1.8 1996/04/12 08:30:09 leo Exp $ */
+/* $NetBSD: ramdisk.c,v 1.9 1996/10/10 22:25:08 christos Exp $ */
/*
* Copyright (c) 1995 Gordon W. Ross, Leo Weppelman.
@@ -130,7 +130,7 @@ rdattach(n)
#ifdef DIAGNOSTIC
if (ramdisk_ndevs) {
- printf("ramdisk: multiple attach calls?\n");
+ kprintf("ramdisk: multiple attach calls?\n");
return;
}
#endif
@@ -151,13 +151,13 @@ rdattach(n)
sc = malloc(sizeof(*sc), M_DEVBUF, M_WAITOK);
if (!sc) {
- printf("ramdisk: malloc for attach failed!\n");
+ kprintf("ramdisk: malloc for attach failed!\n");
return;
}
bzero((caddr_t)sc, sizeof(*sc));
ramdisk_devs[i] = sc;
sc->sc_dev.dv_unit = i;
- sprintf(sc->sc_dev.dv_xname, "rd%d", i);
+ ksprintf(sc->sc_dev.dv_xname, "rd%d", i);
rd_attach(NULL, &sc->sc_dev, NULL);
}
}