diff options
author | obrien <obrien@FreeBSD.org> | 2004-08-16 10:54:25 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2004-08-16 10:54:25 +0000 |
commit | 9d0b1233c43f3e17a3379b8e2695ee11983b3f82 (patch) | |
tree | 95c493957f4c3711faa1855c4c5828d929909987 /sys/amd64/linux32 | |
parent | a7f0efd8d8b6b2c72dcf65a47838b70c7302d4fb (diff) | |
download | FreeBSD-src-9d0b1233c43f3e17a3379b8e2695ee11983b3f82.zip FreeBSD-src-9d0b1233c43f3e17a3379b8e2695ee11983b3f82.tar.gz |
Fix the 'DEBUG' argument code to unbreak the amd64 LINT build.
Diffstat (limited to 'sys/amd64/linux32')
-rw-r--r-- | sys/amd64/linux32/linux32_machdep.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/sys/amd64/linux32/linux32_machdep.c b/sys/amd64/linux32/linux32_machdep.c index 3aa66bc..f5c15d0 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); |