From 4a16b489ca9ae6c3c6d27db6ef6ab406366f7897 Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Mon, 16 Aug 2004 11:12:57 +0000 Subject: [PATCH] Fix the 'DEBUG' argument code to unbreak the amd64 LINT build. --- sys/compat/linux/linux_misc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index 292a20fde9b..3f080280bdc 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/linux/linux_misc.c @@ -233,7 +233,7 @@ linux_brk(struct thread *td, struct linux_brk_args *args) #ifdef DEBUG if (ldebug(brk)) - printf(ARGS(brk, "%p"), (void *)args->dsend); + printf(ARGS(brk, "%p"), (void *)(uintptr_t)args->dsend); #endif old = (vm_offset_t)vm->vm_daddr + ctob(vm->vm_dsize); new = (vm_offset_t)args->dsend; @@ -609,7 +609,7 @@ linux_mremap(struct thread *td, struct linux_mremap_args *args) #ifdef DEBUG if (ldebug(mremap)) printf(ARGS(mremap, "%p, %08lx, %08lx, %08lx"), - (void *)args->addr, + (void *)(uintptr_t)args->addr, (unsigned long)args->old_len, (unsigned long)args->new_len, (unsigned long)args->flags);