diff options
| author | Alejandro Colomar <colomar.6.4.3@gmail.com> | 2020-09-11 22:53:51 +0200 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2020-09-12 08:38:20 +0200 |
| commit | dc97703b4adb91ebf6ba405c8d2ee43ccf10c247 (patch) | |
| tree | b83e64c5e07291f96a8a63d1651d5924eaab0002 /man4/vcs.4 | |
| parent | ec8b00033c6b7e7c20e900334f4e9af391d823fe (diff) | |
| download | man-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 'man4/vcs.4')
| -rw-r--r-- | man4/vcs.4 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/man4/vcs.4 b/man4/vcs.4 index 6a67eb4131..bfa92aaea1 100644 --- a/man4/vcs.4 +++ b/man4/vcs.4 @@ -177,7 +177,7 @@ main(void) if (s & mask) ch |= 0x100; attrib = ((s & \(timask) >> 8); - printf("ch=0x%03x attrib=0x%02x\en", ch, attrib); + printf("ch=%#03x attrib=%#02x\en", ch, attrib); s \(ha= 0x1000; (void) lseek(fd, \-2, SEEK_CUR); (void) write(fd, &s, 2); |
