mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
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:
parent
ae44d27bfd
commit
9b0bcbfbda
2 changed files with 3 additions and 5 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue