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 Log PID.LWP in t_ptrace_wait* tests for e...
details: https://anonhg.NetBSD.org/src/rev/d12e22382c02
branches: trunk
changeset: 465874:d12e22382c02
user: kamil <kamil%NetBSD.org@localhost>
date: Fri Dec 06 01:09:50 2019 +0000
description:
Log PID.LWP in t_ptrace_wait* tests for enabled debug
This is useful for multithreaded test scenarios.
diffstat:
tests/lib/libc/sys/t_ptrace_wait.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 5325b7745d07 -r d12e22382c02 tests/lib/libc/sys/t_ptrace_wait.c
--- a/tests/lib/libc/sys/t_ptrace_wait.c Fri Dec 06 01:01:02 2019 +0000
+++ b/tests/lib/libc/sys/t_ptrace_wait.c Fri Dec 06 01:09:50 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_ptrace_wait.c,v 1.141 2019/11/12 18:18:04 kamil Exp $ */
+/* $NetBSD: t_ptrace_wait.c,v 1.142 2019/12/06 01:09:50 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.141 2019/11/12 18:18:04 kamil Exp $");
+__RCSID("$NetBSD: t_ptrace_wait.c,v 1.142 2019/12/06 01:09:50 kamil Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -118,7 +118,8 @@
#define DPRINTF(a, ...) do \
if (debug) \
- printf("%s() %s:%d " a, __func__, __FILE__, __LINE__, ##__VA_ARGS__); \
+ printf("%s() %d.%d %s:%d " a, \
+ __func__, getpid(), _lwp_self(), __FILE__, __LINE__, ##__VA_ARGS__); \
while (/*CONSTCOND*/0)
/// ----------------------------------------------------------------------------
Home |
Main Index |
Thread Index |
Old Index