From f5ef959b5645e3464d0fa350ba37e18edd599934 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Mon, 19 Jun 2006 21:06:23 +0000 Subject: Everytime one forgets an argument in a printf-like function call, God kills a kitten. Commiters, please think of the kittens when working on code. --- sys/dev/ic/mfi.c | 5 +++-- sys/dev/ic/mpi.c | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/ic/mfi.c b/sys/dev/ic/mfi.c index eee224a4a23..a604cd69655 100644 --- a/sys/dev/ic/mfi.c +++ b/sys/dev/ic/mfi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mfi.c,v 1.60 2006/06/19 19:09:04 marco Exp $ */ +/* $OpenBSD: mfi.c,v 1.61 2006/06/19 21:06:22 miod Exp $ */ /* * Copyright (c) 2006 Marco Peereboom * @@ -644,7 +644,8 @@ mfi_attach(struct mfi_softc *sc) #endif /* NBIO > 0 */ if (mfi_get_info(sc)) { - printf("%s: could not retrieve controller information\n"); + printf("%s: could not retrieve controller information\n", + DEVNAME(sc)); goto noinit; } diff --git a/sys/dev/ic/mpi.c b/sys/dev/ic/mpi.c index c79922eb6c0..bc07dbe52c5 100644 --- a/sys/dev/ic/mpi.c +++ b/sys/dev/ic/mpi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mpi.c,v 1.47 2006/06/18 22:31:06 marco Exp $ */ +/* $OpenBSD: mpi.c,v 1.48 2006/06/19 21:06:22 miod Exp $ */ /* * Copyright (c) 2005, 2006 David Gwynne @@ -1084,7 +1084,8 @@ mpi_scsi_cmd_done(struct mpi_ccb *ccb) xs->retries++; break; default: - printf("%s: invalid status code %d\n", xs->status); + printf("%s: invalid status code %d\n", + DEVNAME(sc), xs->status); xs->error = XS_DRIVER_STUFFUP; break; } -- cgit v1.2.3