Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libc/sys Add more verbosity to debug messages in t...
details: https://anonhg.NetBSD.org/src/rev/b0be0772e5ed
branches: trunk
changeset: 457075:b0be0772e5ed
user: kamil <kamil%NetBSD.org@localhost>
date: Mon Jun 10 21:18:04 2019 +0000
description:
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.
diffstat:
tests/lib/libc/sys/t_ptrace_wait.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 3366d5567963 -r b0be0772e5ed tests/lib/libc/sys/t_ptrace_wait.c
--- a/tests/lib/libc/sys/t_ptrace_wait.c Mon Jun 10 13:49:39 2019 +0000
+++ b/tests/lib/libc/sys/t_ptrace_wait.c Mon Jun 10 21:18:04 2019 +0000
@@ -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 @@
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
Home |
Main Index |
Thread Index |
Old Index