Dr. Werner Fink 2010-12-03 16:58:04 +00:00 committed by Git OBS Bridge
parent ebd8cc790e
commit 3d10b6eae1
2 changed files with 15 additions and 3 deletions

View File

@ -91,8 +91,8 @@
+The procps package is maintained by Albert Calahan. Please send
+bug reports to <albert@users.sf.net>.
--- pmap.c
+++ pmap.c 2010-03-02 15:16:14.000127413 +0000
@@ -1,372 +1,421 @@
+++ pmap.c 2010-12-03 16:55:52.268426585 +0000
@@ -1,372 +1,428 @@
/*
- * Copyright 2002 by Albert Cahalan; all rights reserved.
- * This file may be used subject to the terms and conditions of the
@ -347,10 +347,17 @@
+ if (!doswap)
+ goto out;
+
+ /* get swap */
+ /* get and ignore anonymous */
+ if (!fgets(buff, BUFFERSIZE, smaps_fp))
+ return 1;
+
+ assigned = sscanf(buff, "Anonymous: %lld", &data);
+
+ /* get swap */
+ if (assigned == 1)
+ if(!fgets(buff, BUFFERSIZE, smaps_fp))
+ return 1;
+
+ assigned = sscanf(buff, "Swap: %lld", &data);
+ if (assigned != 1)
+ return 1;

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Dec 3 17:56:27 CET 2010 - werner@suse.de
- pmap: get and ignore Anonymous tag in smaps (bnc#656826)
-------------------------------------------------------------------
Fri Oct 29 12:17:40 CEST 2010 - werner@suse.de