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 Enhance debugging printfs to also repo...
details: https://anonhg.NetBSD.org/src/rev/583c40c8b354
branches: trunk
changeset: 772517:583c40c8b354
user: reinoud <reinoud%NetBSD.org@localhost>
date: Fri Jan 06 20:40:51 2012 +0000
description:
Enhance debugging printfs to also report the functionname
diffstat:
sys/arch/usermode/dev/ld_thunkbus.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (37 lines):
diff -r bf70d64600d5 -r 583c40c8b354 sys/arch/usermode/dev/ld_thunkbus.c
--- a/sys/arch/usermode/dev/ld_thunkbus.c Fri Jan 06 20:39:42 2012 +0000
+++ b/sys/arch/usermode/dev/ld_thunkbus.c Fri Jan 06 20:40:51 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ld_thunkbus.c,v 1.26 2012/01/06 14:11:55 jmcneill Exp $ */
+/* $NetBSD: ld_thunkbus.c,v 1.27 2012/01/06 20:40:51 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.26 2012/01/06 14:11:55 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ld_thunkbus.c,v 1.27 2012/01/06 20:40:51 reinoud Exp $");
#include <sys/param.h>
#include <sys/proc.h>
@@ -161,7 +161,8 @@
goto done;
}
- //printf("ld: %s %u @ %lld -> %p (flags 0x%08x)\n", bp->b_flags & B_READ ? "read" : "write",
+ //printf("%s: %s %u @ %lld -> %p (flags 0x%08x)\n", __func__,
+ // bp->b_flags & B_READ ? "read" : "write",
// (unsigned int)bp->b_bcount, (long long)offset, bp->b_data, bp->b_flags);
/* read/write the request */
@@ -172,7 +173,7 @@
}
//if (ret == -1)
- // printf("ld: errno = %d\n", thunk_geterrno());
+ // printf("%s: errno = %d\n", __func__, thunk_geterrno());
/* setup return params */
if ((ret >= 0) && (ret == bp->b_bcount)) {
Home |
Main Index |
Thread Index |
Old Index