Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/usermode/dev When this debug printf is enabled, ple...
details: https://anonhg.NetBSD.org/src/rev/4b4b1a26edf1
branches: trunk
changeset: 768742:4b4b1a26edf1
user: reinoud <reinoud%NetBSD.org@localhost>
date: Thu Aug 25 19:08:35 2011 +0000
description:
When this debug printf is enabled, please also tell WHAT address one is using
for read/write.
diffstat:
sys/arch/usermode/dev/ld_thunkbus.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (38 lines):
diff -r 339a3429ddda -r 4b4b1a26edf1 sys/arch/usermode/dev/ld_thunkbus.c
--- a/sys/arch/usermode/dev/ld_thunkbus.c Thu Aug 25 19:07:45 2011 +0000
+++ b/sys/arch/usermode/dev/ld_thunkbus.c Thu Aug 25 19:08:35 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ld_thunkbus.c,v 1.5 2011/08/23 17:12:32 jmcneill Exp $ */
+/* $NetBSD: ld_thunkbus.c,v 1.6 2011/08/25 19:08:35 reinoud Exp $ */
/*-
* Copyright (c) 2011 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ld_thunkbus.c,v 1.5 2011/08/23 17:12:32 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ld_thunkbus.c,v 1.6 2011/08/25 19:08:35 reinoud Exp $");
#include <sys/param.h>
#include <sys/proc.h>
@@ -164,7 +164,7 @@
}
if (bp->b_error)
- printf("errpr!\n");
+ printf("error!\n");
lddone(&sc->sc_ld, bp);
}
@@ -189,8 +189,9 @@
tt->tt_aio.aio_sigevent.sigev_value.sival_ptr = tt;
#if 0
- device_printf(sc->sc_ld.sc_dv, "%s off=%lld count=%lld\n",
+ device_printf(sc->sc_ld.sc_dv, "%s addr %p, off=%lld, count=%lld\n",
(bp->b_flags & B_READ) ? "rd" : "wr",
+ bp->b_data,
(long long)bp->b_rawblkno,
(long long)bp->b_bcount);
#endif
Home |
Main Index |
Thread Index |
Old Index