From 186b870df3c30b3ba6ea39a3348035007ed10e64 Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Mon, 16 Aug 2004 10:54:25 +0000 Subject: [PATCH] Fix the 'DEBUG' argument code to unbreak the amd64 LINT build. --- sys/amd64/linux32/linux32_machdep.c | 12 +++++++----- 1 file 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);