From fe01e95defd22028a1e02de3a2288315c00416b3 Mon Sep 17 00:00:00 2001 From: Marco S Hyman Date: Wed, 23 Oct 2002 22:30:05 +0000 Subject: remove 0x in front of %p -- not needed --- regress/lib/libpthread/pthread_kill/pthread_kill.c | 4 ++-- regress/lib/libpthread/siginfo/siginfo.c | 6 +++--- regress/lib/libpthread/signodefer/signodefer.c | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'regress/lib/libpthread') diff --git a/regress/lib/libpthread/pthread_kill/pthread_kill.c b/regress/lib/libpthread/pthread_kill/pthread_kill.c index 697d00767b0..b0457a2dfb1 100644 --- a/regress/lib/libpthread/pthread_kill/pthread_kill.c +++ b/regress/lib/libpthread/pthread_kill/pthread_kill.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pthread_kill.c,v 1.1 2002/10/21 18:44:11 marc Exp $ */ +/* $OpenBSD: pthread_kill.c,v 1.2 2002/10/23 22:30:04 marc Exp $ */ /* PUBLIC DOMAIN Oct 2002 */ /* @@ -22,7 +22,7 @@ act_handler(int signal, siginfo_t *siginfo, void *context) CHECKe(sigaction(SIGUSR1, NULL, &sa)); ASSERT(sa.sa_handler == SIG_DFL); ASSERT(siginfo != NULL); - asprintf(&str, "act_handler: signal %d, siginfo 0x%p, context 0x%p\n", + asprintf(&str, "act_handler: signal %d, siginfo %p, context %p\n", signal, siginfo, context); write(STDOUT_FILENO, str, strlen(str)); } diff --git a/regress/lib/libpthread/siginfo/siginfo.c b/regress/lib/libpthread/siginfo/siginfo.c index f12a666d5c3..36a222c7e6e 100644 --- a/regress/lib/libpthread/siginfo/siginfo.c +++ b/regress/lib/libpthread/siginfo/siginfo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: siginfo.c,v 1.6 2002/10/21 18:50:17 marc Exp $ */ +/* $OpenBSD: siginfo.c,v 1.7 2002/10/23 22:30:04 marc Exp $ */ /* PUBLIC DOMAIN Oct 2002 */ /* @@ -23,8 +23,8 @@ act_handler(int signal, siginfo_t *siginfo, void *context) CHECKe(sigaction(SIGSEGV, NULL, &sa)); ASSERT(sa.sa_handler == SIG_DFL); ASSERT(siginfo != NULL); - asprintf(&str, "act_handler: signal %d, siginfo 0x%p, context 0x%p\n" - "addr 0x%p, code %d, trap %d\n", signal, siginfo, context, + asprintf(&str, "act_handler: signal %d, siginfo %p, context %p\n" + "addr %p, code %d, trap %d\n", signal, siginfo, context, siginfo->si_addr, siginfo->si_code, siginfo->si_trapno); write(STDOUT_FILENO, str, strlen(str)); ASSERT(siginfo->si_addr == BOGUS && diff --git a/regress/lib/libpthread/signodefer/signodefer.c b/regress/lib/libpthread/signodefer/signodefer.c index dbc0561cac8..211cc648ce0 100644 --- a/regress/lib/libpthread/signodefer/signodefer.c +++ b/regress/lib/libpthread/signodefer/signodefer.c @@ -1,4 +1,4 @@ -/* $OpenBSD: signodefer.c,v 1.1 2002/10/21 18:46:35 marc Exp $ */ +/* $OpenBSD: signodefer.c,v 1.2 2002/10/23 22:30:04 marc Exp $ */ /* PUBLIC DOMAIN Oct 2002 */ /* @@ -28,7 +28,7 @@ act_handler(int signal, siginfo_t *siginfo, void *context) ASSERT(siginfo != NULL); asprintf(&str, - "%sact_handler/%d, signal %d, siginfo 0x%p, context 0x%p\n", + "%sact_handler/%d, signal %d, siginfo %p, context %p\n", was_active ? "[recurse] " : "", sigcount, signal, siginfo, context); CHECKe(write(STDOUT_FILENO, str, strlen(str))); -- cgit v1.2.3