Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Fix DPRINTF()'s missing the extra parenteses
details: https://anonhg.NetBSD.org/src/rev/3050549035e0
branches: trunk
changeset: 768814:3050549035e0
user: reinoud <reinoud%NetBSD.org@localhost>
date: Sat Aug 27 18:07:10 2011 +0000
description:
Fix DPRINTF()'s missing the extra parenteses
diffstat:
sys/kern/kern_exec.c | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
diffs (71 lines):
diff -r 6c263bf1fcb8 -r 3050549035e0 sys/kern/kern_exec.c
--- a/sys/kern/kern_exec.c Sat Aug 27 18:01:37 2011 +0000
+++ b/sys/kern/kern_exec.c Sat Aug 27 18:07:10 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_exec.c,v 1.326 2011/08/27 17:51:38 reinoud Exp $ */
+/* $NetBSD: kern_exec.c,v 1.327 2011/08/27 18:07:10 reinoud Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -59,7 +59,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.326 2011/08/27 17:51:38 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.327 2011/08/27 18:07:10 reinoud Exp $");
#include "opt_exec.h"
#include "opt_ktrace.h"
@@ -855,7 +855,7 @@
{
size_t j;
struct exec_vmcmd *vp = &pack.ep_vmcmds.evs_cmds[0];
- DPRINTF("vmcmds %u\n", pack.ep_vmcmds.evs_used);
+ DPRINTF(("vmcmds %u\n", pack.ep_vmcmds.evs_used);
for (j = 0; j < pack.ep_vmcmds.evs_used; j++) {
DPRINTF("vmcmd[%zu] = vmcmd_map_%s %#"
PRIxVADDR"/%#"PRIxVSIZE" fd@%#"
@@ -868,7 +868,7 @@
"zero" : "*unknown*",
vp[j].ev_addr, vp[j].ev_len,
vp[j].ev_offset, vp[j].ev_prot,
- vp[j].ev_flags);
+ vp[j].ev_flags));
}
}
#endif /* DEBUG_EXEC */
@@ -893,10 +893,10 @@
if (error) {
size_t j;
struct exec_vmcmd *vp = &pack.ep_vmcmds.evs_cmds[0];
- DPRINTF("vmcmds %zu/%u, error %d\n", i,
- pack.ep_vmcmds.evs_used, error);
+ DPRINTF(("vmcmds %zu/%u, error %d\n", i,
+ pack.ep_vmcmds.evs_used, error));
for (j = 0; j < pack.ep_vmcmds.evs_used; j++) {
- DPRINTF("vmcmd[%zu] = vmcmd_map_%s %#"
+ DPRINTF(("vmcmd[%zu] = vmcmd_map_%s %#"
PRIxVADDR"/%#"PRIxVSIZE" fd@%#"
PRIxVSIZE" prot=0%o flags=%d\n", j,
vp[j].ev_proc == vmcmd_map_pagedvn ?
@@ -907,9 +907,9 @@
"zero" : "*unknown*",
vp[j].ev_addr, vp[j].ev_len,
vp[j].ev_offset, vp[j].ev_prot,
- vp[j].ev_flags);
+ vp[j].ev_flags));
if (j == i)
- DPRINTF(" ^--- failed\n");
+ DPRINTF((" ^--- failed\n"));
}
}
#endif /* DEBUG_EXEC */
@@ -1275,7 +1275,7 @@
pathbuf_stringcopy_put(pb, pathstring);
pathbuf_destroy(pb);
PNBUF_PUT(resolvedpathbuf);
- DPRINTF("%s finished\n", __func__);
+ DPRINTF(("%s finished\n", __func__));
return (EJUSTRETURN);
bad:
Home |
Main Index |
Thread Index |
Old Index