[Crash-utility] Small fix for pages_scanned value

Alexandr Terekhov Alexandr_Terekhov at epam.com
Tue Jan 20 14:34:23 UTC 2015


Hi Dave,

there seems to be typo while printing pages_scanned value - signed output for unsigned variable.

Patch:
--- crash-7.0.9.orig/memory.c	2014-11-13 15:33:40.000000000 -0500
+++ crash-7.0.9/memory.c	2015-01-20 05:19:07.000000000 -0500
@@ -15776,7 +15776,7 @@ dump_zone_stats(void)
 			if (VALID_MEMBER(zone_pages_scanned)) {
 				value1 = ULONG(zonebuf + 
 					OFFSET(zone_pages_scanned));
-				fprintf(fp, "PAGES_SCANNED: %ld  ", value1);
+				fprintf(fp, "PAGES_SCANNED: %lu  ", value1);
 			} 
 			fprintf(fp, "\n");

regards,
Alexandr




More information about the Crash-utility mailing list