From 6925ec5238a7a84f51ef7d1886dbadf6daa51466 Mon Sep 17 00:00:00 2001 From: Alexander Yurchenko Date: Wed, 15 Sep 2004 17:58:26 +0000 Subject: Better debug printfs: missing \n and show xfer flags in wdc_exec_xfer(). --- sys/dev/ic/wdc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/dev/ic/wdc.c b/sys/dev/ic/wdc.c index d19c26aec64..08d1d2ed7a5 100644 --- a/sys/dev/ic/wdc.c +++ b/sys/dev/ic/wdc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wdc.c,v 1.83 2004/02/19 21:16:21 grange Exp $ */ +/* $OpenBSD: wdc.c,v 1.84 2004/09/15 17:58:25 grange Exp $ */ /* $NetBSD: wdc.c,v 1.68 1999/06/23 19:00:17 bouyer Exp $ */ @@ -1744,7 +1744,7 @@ wdc_exec_command(drvp, wdc_c) ret = WDC_COMPLETE; } else { if (wdc_c->flags & AT_WAIT) { - WDCDEBUG_PRINT(("wdc_exec_command sleeping"), + WDCDEBUG_PRINT(("wdc_exec_command sleeping\n"), DEBUG_FUNCS); while ((wdc_c->flags & AT_DONE) == 0) { @@ -2014,8 +2014,8 @@ wdc_exec_xfer(chp, xfer) struct channel_softc *chp; struct wdc_xfer *xfer; { - WDCDEBUG_PRINT(("wdc_exec_xfer %p channel %d drive %d\n", xfer, - chp->channel, xfer->drive), DEBUG_XFERS); + WDCDEBUG_PRINT(("wdc_exec_xfer %p flags 0x%x channel %d drive %d\n", + xfer, xfer->c_flags, chp->channel, xfer->drive), DEBUG_XFERS); /* complete xfer setup */ xfer->chp = chp; -- cgit v1.2.3