[memprof: 60/76] leakdetect.c: Fix warning about wrong format types



commit 855ce5b728fd1f2af289cf2ada9daf02b43c5041
Author: Juan A. Suarez Romero <jasuarez igalia com>
Date:   Fri Dec 4 10:13:44 2009 +0000

    leakdetect.c: Fix warning about wrong format types
    
    When printing a gsize type, use G_GSIZE_FORMAT.

 src/leakdetect.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/leakdetect.c b/src/leakdetect.c
index fb8d80b..a2b13f4 100644
--- a/src/leakdetect.c
+++ b/src/leakdetect.c
@@ -170,7 +170,7 @@ read_stack_maps (MPProcess *process)
 		return NULL;
 
 	while (fgets(buffer, 1023, in)) {
-		int count = sscanf (buffer, "%x-%x %15s %*x %x:%x %u %255s",
+		int count = sscanf (buffer, "%" G_GSIZE_FORMAT "-%" G_GSIZE_FORMAT " %15s %*x %" G_GSIZE_FORMAT ":%" G_GSIZE_FORMAT " %" G_GSIZE_FORMAT " %255s",
 				    &start, &end, perms, &major, &minor, &inode, file);
 		if (count >= 6)	{
 			if (strcmp (perms, "rwxp") == 0) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]