aboutsummaryrefslogtreecommitdiffstats
path: root/man2/timer_create.2
diff options
context:
space:
mode:
authorAlejandro Colomar <colomar.6.4.3@gmail.com>2020-09-11 22:53:51 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2020-09-12 08:38:20 +0200
commitdc97703b4adb91ebf6ba405c8d2ee43ccf10c247 (patch)
treeb83e64c5e07291f96a8a63d1651d5924eaab0002 /man2/timer_create.2
parentec8b00033c6b7e7c20e900334f4e9af391d823fe (diff)
downloadman-pages-dc97703b4adb91ebf6ba405c8d2ee43ccf10c247.tar.gz
eventfd.2, mprotect.2, pidfd_open.2, spu_run.2, timer_create.2, bswap.3, dl_iterate_phdr.3, endian.3, pthread_attr_init.3, pthread_getattr_np.3, vcs.4, rtld-audit.7: In printf(): s/0x%/%#/ except when followed by X instead of x
Use printf()'s '#' flag character to prepend the string "0x". However, when the number is printed in uppercase, and the prefix is in lowercase, the string "0x" needs to be manually written. Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man2/timer_create.2')
-rw-r--r--man2/timer_create.24
1 files changed, 2 insertions, 2 deletions
diff --git a/man2/timer_create.2 b/man2/timer_create.2
index 9c99077390..05482f6d98 100644
--- a/man2/timer_create.2
+++ b/man2/timer_create.2
@@ -390,7 +390,7 @@ print_siginfo(siginfo_t *si)
tidp = si\->si_value.sival_ptr;
printf(" sival_ptr = %p; ", si\->si_value.sival_ptr);
- printf(" *sival_ptr = 0x%lx\en", (unsigned long) *tidp);
+ printf(" *sival_ptr = %#lx\en", (unsigned long) *tidp);
or = timer_getoverrun(*tidp);
if (or == \-1)
@@ -454,7 +454,7 @@ main(int argc, char *argv[])
if (timer_create(CLOCKID, &sev, &timerid) == \-1)
errExit("timer_create");
- printf("timer ID is 0x%lx\en", (unsigned long) timerid);
+ printf("timer ID is %#lx\en", (unsigned long) timerid);
/* Start the timer */