From 1bb64dfc819e10b815ba12be90a0be5652ba2b29 Mon Sep 17 00:00:00 2001 From: nyan Date: Mon, 2 Jul 2001 10:18:56 +0000 Subject: [PATCH] Fixed warning message. Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata) --- sys/pc98/cbus/fdc.c | 5 ++--- sys/pc98/pc98/fd.c | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/sys/pc98/cbus/fdc.c b/sys/pc98/cbus/fdc.c index 404735e65c4c..1dac8b1b2868 100644 --- a/sys/pc98/cbus/fdc.c +++ b/sys/pc98/cbus/fdc.c @@ -1378,9 +1378,8 @@ fd_probe(device_t dev) break; } - printf("Warning: can't control 3mode I/F, " - "fallback to 2mode.\n" - "fd%d: ", fd->fdu); + device_printf(dev, + "Warning: can't control 3mode I/F, fallback to 2mode.\n"); /* FALLTHROUGH */ case FDT_12M: #ifdef EPSON_NRDISK diff --git a/sys/pc98/pc98/fd.c b/sys/pc98/pc98/fd.c index 404735e65c4c..1dac8b1b2868 100644 --- a/sys/pc98/pc98/fd.c +++ b/sys/pc98/pc98/fd.c @@ -1378,9 +1378,8 @@ fd_probe(device_t dev) break; } - printf("Warning: can't control 3mode I/F, " - "fallback to 2mode.\n" - "fd%d: ", fd->fdu); + device_printf(dev, + "Warning: can't control 3mode I/F, fallback to 2mode.\n"); /* FALLTHROUGH */ case FDT_12M: #ifdef EPSON_NRDISK