summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_getcwd.c
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2006-11-18 13:31:03 +0000
committerkib <kib@FreeBSD.org>2006-11-18 13:31:03 +0000
commita5fec14253b809b1675e02162d632ce1b594ed8b (patch)
tree687e95635dafb258913557d5eb204cb9a15bff6c /sys/compat/linux/linux_getcwd.c
parentc8d6b825967d1e78eee75cdfca7f2d0ba955fabb (diff)
downloadFreeBSD-src-a5fec14253b809b1675e02162d632ce1b594ed8b.zip
FreeBSD-src-a5fec14253b809b1675e02162d632ce1b594ed8b.tar.gz
Use standard debugging facilities in linux_getcwd().
Submitted by: rdivacky
Diffstat (limited to 'sys/compat/linux/linux_getcwd.c')
-rw-r--r--sys/compat/linux/linux_getcwd.c4
1 files changed, 2 insertions, 2 deletions
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;
OpenPOWER on IntegriCloud