summaryrefslogtreecommitdiffstats
path: root/showmap
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2009-02-10 15:44:07 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2009-02-10 15:44:07 -0800
commit4c644e5265bd0c62e28a7a20bb36def738e960e9 (patch)
treef648addd91a1cc5b705f160be674426f71f01991 /showmap
parent1d68e595e72f955a8cd12f59825943ea71daf7d5 (diff)
downloadandroid_system_extras-4c644e5265bd0c62e28a7a20bb36def738e960e9.tar.gz
android_system_extras-4c644e5265bd0c62e28a7a20bb36def738e960e9.tar.bz2
android_system_extras-4c644e5265bd0c62e28a7a20bb36def738e960e9.zip
auto import from //branches/cupcake/...@130745
Diffstat (limited to 'showmap')
-rw-r--r--showmap/showmap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/showmap/showmap.c b/showmap/showmap.c
index e8c7dd50..4abd56a8 100644
--- a/showmap/showmap.c
+++ b/showmap/showmap.c
@@ -78,6 +78,7 @@ again:
if(fgets(line, 1024, fp) == 0) goto oops;
if(sscanf(line, "Private_Dirty: %d kB", &mi->private_dirty) != 1) goto oops;
if(fgets(line, 1024, fp) == 0) goto oops;
+ if(fgets(line, 1024, fp) == 0) goto oops;
if(skip) {
free(mi);
@@ -86,6 +87,7 @@ again:
return mi;
oops:
+ fprintf(stderr, "WARNING: Format of /proc/<pid>/smaps has changed!\n");
free(mi);
return 0;
}