summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-08-28 03:38:36 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-08-28 03:38:36 +0000
commit9b6cf62b19b608664f5504e9a21bdff6a19ad8c8 (patch)
tree79ceb1c20baae20be1e9817a9cbb387ceb028168
parent279469bd3c993a0b6cb7fa358976febb29ced99c (diff)
cast size_t to u_long on printing. from netbsd
-rw-r--r--sys/dev/systrace.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/systrace.c b/sys/dev/systrace.c
index 3c6e4d6d155..666355785cc 100644
--- a/sys/dev/systrace.c
+++ b/sys/dev/systrace.c
@@ -941,8 +941,8 @@ systrace_io(struct str_process *strp, struct systrace_io *io)
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:
@@ -1256,8 +1256,8 @@ systrace_newpolicy(struct fsystrace *fst, int maxents)
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));