Module Name: src Committed By: kamil Date: Mon Jun 10 21:18:04 UTC 2019
Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Add more verbosity to debug messages in t_ptrace_wait Log func() file:line for each debug message. Most messages are similar one with the other and this change allows easier navigation in the code. To generate a diff of this commit: cvs rdiff -u -r1.122 -r1.123 src/tests/lib/libc/sys/t_ptrace_wait.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/tests/lib/libc/sys/t_ptrace_wait.c diff -u src/tests/lib/libc/sys/t_ptrace_wait.c:1.122 src/tests/lib/libc/sys/t_ptrace_wait.c:1.123 --- src/tests/lib/libc/sys/t_ptrace_wait.c:1.122 Sat May 25 03:25:08 2019 +++ src/tests/lib/libc/sys/t_ptrace_wait.c Mon Jun 10 21:18:04 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: t_ptrace_wait.c,v 1.122 2019/05/25 03:25:08 kamil Exp $ */ +/* $NetBSD: t_ptrace_wait.c,v 1.123 2019/06/10 21:18:04 kamil Exp $ */ /*- * Copyright (c) 2016, 2017, 2018, 2019 The NetBSD Foundation, Inc. @@ -27,7 +27,7 @@ */ #include <sys/cdefs.h> -__RCSID("$NetBSD: t_ptrace_wait.c,v 1.122 2019/05/25 03:25:08 kamil Exp $"); +__RCSID("$NetBSD: t_ptrace_wait.c,v 1.123 2019/06/10 21:18:04 kamil Exp $"); #include <sys/param.h> #include <sys/types.h> @@ -94,7 +94,8 @@ __RCSID("$NetBSD: t_ptrace_wait.c,v 1.12 static int debug = 0; #define DPRINTF(a, ...) do \ - if (debug) printf(a, ##__VA_ARGS__); \ + if (debug) \ + printf("%s() %s:%d " a, __func__, __FILE__, __LINE__, ##__VA_ARGS__); \ while (/*CONSTCOND*/0) #ifndef TEST_VFORK_ENABLED