aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64/linux32
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2004-08-16 10:54:25 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2004-08-16 10:54:25 +0000
commit186b870df3c30b3ba6ea39a3348035007ed10e64 (patch)
tree95c493957f4c3711faa1855c4c5828d929909987 /sys/amd64/linux32
parent51e3a35ba03534d4055cf57f42c88e7837d69f87 (diff)
Notes
Diffstat (limited to 'sys/amd64/linux32')
-rw-r--r--sys/amd64/linux32/linux32_machdep.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/sys/amd64/linux32/linux32_machdep.c b/sys/amd64/linux32/linux32_machdep.c
index 3aa66bc933ba..f5c15d042c3d 100644
--- a/sys/amd64/linux32/linux32_machdep.c
+++ b/sys/amd64/linux32/linux32_machdep.c
@@ -457,7 +457,8 @@ linux_clone(struct thread *td, struct linux_clone_args *args)
#ifdef DEBUG
if (ldebug(clone)) {
printf(ARGS(clone, "flags %x, stack %x"),
- (unsigned int)args->flags, (unsigned int)args->stack);
+ (unsigned int)(uintptr_t)args->flags,
+ (unsigned int)(uintptr_t)args->stack);
if (args->flags & CLONE_PID)
printf(LMSG("CLONE_PID not yet supported"));
}
@@ -533,7 +534,7 @@ linux_mmap2(struct thread *td, struct linux_mmap2_args *args)
#ifdef DEBUG
if (ldebug(mmap2))
printf(ARGS(mmap2, "%p, %d, %d, 0x%08x, %d, %d"),
- (void *)args->addr, args->len, args->prot,
+ (void *)(intptr_t)args->addr, args->len, args->prot,
args->flags, args->fd, args->pgoff);
#endif
@@ -560,8 +561,9 @@ linux_mmap(struct thread *td, struct linux_mmap_args *args)
#ifdef DEBUG
if (ldebug(mmap))
printf(ARGS(mmap, "%p, %d, %d, 0x%08x, %d, %d"),
- (void *)linux_args.addr, linux_args.len, linux_args.prot,
- linux_args.flags, linux_args.fd, linux_args.pos);
+ (void *)(intptr_t)linux_args.addr, linux_args.len,
+ linux_args.prot, linux_args.flags, linux_args.fd,
+ linux_args.pos);
#endif
return (linux_mmap_common(td, &linux_args));
@@ -681,7 +683,7 @@ linux_mmap_common(struct thread *td, struct l_mmap_argv *linux_args)
if (ldebug(mmap))
printf("-> %s(%p, %d, %d, 0x%08x, %d, 0x%x)\n",
__func__,
- (void *)bsd_args.addr, bsd_args.len, bsd_args.prot,
+ (void *)bsd_args.addr, (int)bsd_args.len, bsd_args.prot,
bsd_args.flags, bsd_args.fd, (int)bsd_args.pos);
#endif
error = mmap(td, &bsd_args);