[syslinux] [PATCH] meminfo.c32: Remove unneeded 'x' characters from output

Ady Ady ady-sf at hotmail.com
Fri Aug 9 02:03:12 PDT 2019


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




More information about the Syslinux mailing list