summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2014-02-05 01:46:10 +0000
committerDmitry V. Levin <ldv@altlinux.org>2014-02-05 01:46:10 +0000
commitbae549e91b1bf0d2261d1137c7f2bf08180ad9e6 (patch)
tree49649b81804953d866a040a0977be854f5186df1
parentbce0cc6a2d103e1da4c15a4c5396fdc5676294f7 (diff)
downloadstrace-bae549e91b1bf0d2261d1137c7f2bf08180ad9e6.tar.gz
strace-bae549e91b1bf0d2261d1137c7f2bf08180ad9e6.tar.bz2
strace-bae549e91b1bf0d2261d1137c7f2bf08180ad9e6.tar.xz
Convert sigev_value to XLAT form
* time.c (sigev_value): Convert to XLAT form. (printsigevent32, printsigevent): Update use of sigev_value.
-rw-r--r--time.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/time.c b/time.c
index 3c50b80..8975cc7 100644
--- a/time.c
+++ b/time.c
@@ -757,10 +757,10 @@ sys_clock_adjtime(struct tcb *tcp)
# define SIGEV_THREAD_ID 4
#endif
static const struct xlat sigev_value[] = {
- { SIGEV_SIGNAL+1, "SIGEV_SIGNAL" },
- { SIGEV_NONE+1, "SIGEV_NONE" },
- { SIGEV_THREAD+1, "SIGEV_THREAD" },
- { SIGEV_THREAD_ID+1, "SIGEV_THREAD_ID" },
+ XLAT(SIGEV_SIGNAL),
+ XLAT(SIGEV_NONE),
+ XLAT(SIGEV_THREAD),
+ XLAT(SIGEV_THREAD_ID),
{ 0, NULL }
};
@@ -789,7 +789,7 @@ printsigevent32(struct tcb *tcp, long arg)
tprintf("%s, ", signame(sev.sigev_signo));
else
tprintf("%u, ", sev.sigev_signo);
- printxval(sigev_value, sev.sigev_notify + 1, "SIGEV_???");
+ printxval(sigev_value, sev.sigev_notify, "SIGEV_???");
tprints(", ");
if (sev.sigev_notify == SIGEV_THREAD_ID)
tprintf("{%d}", sev.un.tid);
@@ -823,7 +823,7 @@ printsigevent(struct tcb *tcp, long arg)
tprintf("%s, ", signame(sev.sigev_signo));
else
tprintf("%u, ", sev.sigev_signo);
- printxval(sigev_value, sev.sigev_notify+1, "SIGEV_???");
+ printxval(sigev_value, sev.sigev_notify, "SIGEV_???");
tprints(", ");
if (sev.sigev_notify == SIGEV_THREAD_ID)
#if defined(HAVE_STRUCT_SIGEVENT__SIGEV_UN__PAD)