Ady Ady
2019-Aug-09 09:03 UTC
[syslinux] [PATCH] meminfo.c32: Remove unneeded 'x' characters from output
meminfo.c32: Remove unneeded 'x' characters from output. Commit 5932f124 ("com32: change '%llx' to use PRIx64", committed on 2015-01-06) adds 1 "x" character per each of the 3 hex output columns for the 'INT 15h e820' value(s) in meminfo.c32. These 3 extra "x" characters are not really needed in this context, and they can make the resulting text output less suited for 80 columns. By removing the non-essential "x" characters, the text output of meminfo.c32 gets to be back in line with versions prior to 6.03. --- a/syslinux-6.04-pre1/com32/modules/meminfo.c +++ b/syslinux-6.04-pre1/com32/modules/meminfo.c @@ -71,12 +71,12 @@ if (oreg.ecx.l >= 24) { /* ebx base length end type */ - printf("%8x %016" PRIx64 "x %016" PRIx64 "x %016" PRIx64 "x %d [%x]", + printf("%8x %016" PRIx64 " %016" PRIx64 " %016" PRIx64 " %d [%x]", ireg.ebx.l, ed.base, ed.len, ed.base + ed.len, ed.type, ed.extattr); } else { /* ebx base length end */ - printf("%8x %016" PRIx64 "x %016" PRIx64 "x %016" PRIx64 "x %d [-]", + printf("%8x %016" PRIx64 " %016" PRIx64 " %016" PRIx64 " %d [-]", ireg.ebx.l, ed.base, ed.len, ed.base + ed.len, ed.type); ed.extattr = 1; } -- -Ady
Seemingly Similar Threads
- Get rid of printf format warning format ‘%llx’ expects type ‘long long unsigned int’, but argument 2 has type ‘uint64_t’
- [GIT PULL] elflink warning fixes and auto extension support
- [PATCH] core: Incorrect detection of EDD in /core/fs/diskio_bios.c
- [PATCH] core: Incorrect detection of EDD in /core/fs/diskio_bios.c
- [PATCH] core: Incorrect detection of EDD in /core/fs/diskio_bios.c