Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern cast register_t/size_t to u_long on printing.
details: https://anonhg.NetBSD.org/src/rev/a343565c371a
branches: trunk
changeset: 535017:a343565c371a
user: itojun <itojun%NetBSD.org@localhost>
date: Thu Aug 08 14:43:40 2002 +0000
description:
cast register_t/size_t to u_long on printing.
From: Havard Eidnes <he%netbsd.org@localhost>
diffstat:
sys/kern/kern_systrace.c | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 deletions(-)
diffs (89 lines):
diff -r 2522c3092977 -r a343565c371a sys/kern/kern_systrace.c
--- a/sys/kern/kern_systrace.c Thu Aug 08 14:38:47 2002 +0000
+++ b/sys/kern/kern_systrace.c Thu Aug 08 14:43:40 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_systrace.c,v 1.12 2002/08/08 14:38:47 itojun Exp $ */
+/* $NetBSD: kern_systrace.c,v 1.13 2002/08/08 14:43:40 itojun Exp $ */
/*
* Copyright 2002 Niels Provos <provos%citi.umich.edu@localhost>
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_systrace.c,v 1.12 2002/08/08 14:38:47 itojun Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_systrace.c,v 1.13 2002/08/08 14:43:40 itojun Exp $");
#include "opt_systrace.h"
@@ -707,12 +707,12 @@
callp = p->p_emul->e_sysent + code;
switch (policy) {
case SYSTR_POLICY_PERMIT:
- DPRINTF(("policy permit, syscall %d\n", code));
+ DPRINTF(("policy permit, syscall %lu\n", (u_long)code));
break;
case SYSTR_POLICY_ASK:
/* Puts the current process to sleep, return unlocked */
error = systrace_msg_ask(fst, strp, code, callp->sy_argsize, v);
- DPRINTF(("policy permit, syscall %d error %d\n", code, error));
+ DPRINTF(("policy permit, syscall %lu error %d\n", (u_long)code, error));
/* lock has been released in systrace_msg_ask() */
fst = NULL;
@@ -745,7 +745,7 @@
error = policy;
else
error = EPERM;
- DPRINTF(("policy default, syscall %d, error %d\n", code,
+ DPRINTF(("policy default, syscall %lu, error %d\n", (u_long)code,
error));
break;
}
@@ -777,7 +777,7 @@
systrace_unlock();
return;
}
- DPRINTF(("exit syscall %d, oldemul %p\n", code, strp->oldemul));
+ DPRINTF(("exit syscall %lu, oldemul %p\n", (u_long)code, strp->oldemul));
if (p->p_flag & P_SUGID) {
if ((fst = strp->parent) == NULL || !fst->issuser) {
@@ -814,13 +814,13 @@
fst = strp->parent;
SYSTRACE_LOCK(fst, p);
systrace_unlock();
- DPRINTF(("will ask syscall %d, strp %p\n", code, strp));
+ DPRINTF(("will ask syscall %lu, strp %p\n", (u_long)code, strp));
callp = p->p_emul->e_sysent + code;
systrace_msg_result(fst, strp, error, code,
callp->sy_argsize, v, retval);
} else {
- DPRINTF(("will not ask syscall %d, strp %p\n", code, strp));
+ DPRINTF(("will not ask syscall %lu, strp %p\n", (u_long)code, strp));
systrace_unlock();
}
}
@@ -1005,8 +1005,8 @@
struct iovec iov;
int error = 0;
- DPRINTF(("%s: %u: %p(%d)\n", __func__,
- io->strio_pid, io->strio_offs, io->strio_len));
+ DPRINTF(("%s: %u: %p(%lu)\n", __func__,
+ io->strio_pid, io->strio_offs, (u_long)io->strio_len));
switch (io->strio_op) {
case SYSTR_READ:
@@ -1337,8 +1337,8 @@
if (pol == NULL)
return (NULL);
- DPRINTF(("%s: allocating %d -> %d\n", __func__,
- maxents, maxents * sizeof(int)));
+ DPRINTF(("%s: allocating %d -> %lu\n", __func__,
+ maxents, (u_long)maxents * sizeof(int)));
memset((caddr_t)pol, 0, sizeof(struct str_policy));
Home |
Main Index |
Thread Index |
Old Index