From 9b0bcbfbda6c070dacfed80f8bc8d125fa1ecee5 Mon Sep 17 00:00:00 2001 From: Alexander Leidinger Date: Thu, 17 Aug 2006 09:50:30 +0000 Subject: [PATCH] Fix the DEBUG build: - linux_emul.c [1] - linux_futex.c [2] Sponsored by: Google SoC 2006 [1] Submitted by: rdivacky [1] netchild [2] --- sys/compat/linux/linux_emul.c | 3 --- sys/compat/linux/linux_futex.c | 5 +++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/sys/compat/linux/linux_emul.c b/sys/compat/linux/linux_emul.c index 9d142156f37..eb4abfc5d60 100644 --- a/sys/compat/linux/linux_emul.c +++ b/sys/compat/linux/linux_emul.c @@ -246,9 +246,6 @@ linux_schedtail(void *arg __unused, struct proc *p) { struct linux_emuldata *em; int error = 0; -#ifdef DEBUG - struct thread *td = FIRST_THREAD_IN_PROC(p); -#endif int *child_set_tid; if (p->p_sysent != &elf_linux_sysvec) diff --git a/sys/compat/linux/linux_futex.c b/sys/compat/linux/linux_futex.c index 889d29d6d48..8e7ee2397a6 100644 --- a/sys/compat/linux/linux_futex.c +++ b/sys/compat/linux/linux_futex.c @@ -146,9 +146,10 @@ linux_sys_futex(struct thread *td, struct linux_sys_futex_args *args) #ifdef DEBUG if (ldebug(sys_futex)) printf("FUTEX_WAIT %d: val = %d, uaddr = %p, " - "*uaddr = %d, timeout = %d.%09ld\n", + "*uaddr = %d, timeout = %d.%09lu\n", td->td_proc->p_pid, args->val, - args->uaddr, val, timeout.tv_sec, timeout.tv_nsec); + args->uaddr, val, timeout.tv_sec, + (unsigned long)timeout.tv_nsec); #endif tv.tv_usec = timeout.tv_sec * 1000000 + timeout.tv_nsec / 1000; timeout_hz = tvtohz(&tv);