From a5fec14253b809b1675e02162d632ce1b594ed8b Mon Sep 17 00:00:00 2001 From: kib Date: Sat, 18 Nov 2006 13:31:03 +0000 Subject: Use standard debugging facilities in linux_getcwd(). Submitted by: rdivacky --- sys/compat/linux/linux_getcwd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/compat') diff --git a/sys/compat/linux/linux_getcwd.c b/sys/compat/linux/linux_getcwd.c index 70631ed..498bf3b 100644 --- a/sys/compat/linux/linux_getcwd.c +++ b/sys/compat/linux/linux_getcwd.c @@ -425,8 +425,8 @@ linux_getcwd(struct thread *td, struct linux_getcwd_args *args) int error, len, lenused; #ifdef DEBUG - printf("Linux-emul(%ld): getcwd(%p, %ld)\n", (long)td->td_proc->p_pid, - args->buf, (long)args->bufsize); + if (ldebug(getcwd)) + printf(ARGS(getcwd, "%p, %ld", args->buf, (long)args->bufsize); #endif len = args->bufsize; -- cgit v1.1