Fix the DEBUG build:

- linux_emul.c [1]
 - linux_futex.c [2]

Sponsored by:	Google SoC 2006	[1]
Submitted by:	rdivacky	[1]
		netchild	[2]
This commit is contained in:
Alexander Leidinger 2006-08-17 09:50:30 +00:00
parent ae44d27bfd
commit 9b0bcbfbda
2 changed files with 3 additions and 5 deletions

View file

@ -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)

View file

@ -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);