aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2012-02-02 11:29:43 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2012-02-02 11:29:43 +0100
commit9ec3cd400ad9930a8cd3de371271202de49adea9 (patch)
tree1e11c64ce254eac2ace29f81018298c52df56398
parent35def51c9747895d38c11e3c41e62c3c68c92438 (diff)
downloadbusybox-w32-9ec3cd400ad9930a8cd3de371271202de49adea9.tar.gz
busybox-w32-9ec3cd400ad9930a8cd3de371271202de49adea9.tar.bz2
busybox-w32-9ec3cd400ad9930a8cd3de371271202de49adea9.zip
tweak comment, no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--libbb/procps.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libbb/procps.c b/libbb/procps.c
index e15ddd1e5..0e3f2f9da 100644
--- a/libbb/procps.c
+++ b/libbb/procps.c
@@ -198,7 +198,7 @@ int FAST_FUNC procps_read_smaps(pid_t pid, struct smaprec *total,
198 memset(&currec, 0, sizeof(currec)); 198 memset(&currec, 0, sizeof(currec));
199 while (fgets(buf, PROCPS_BUFSIZE, file)) { 199 while (fgets(buf, PROCPS_BUFSIZE, file)) {
200 // Each mapping datum has this form: 200 // Each mapping datum has this form:
201 // f7d29000-f7d39000 rw-s ADR M:m OFS FILE 201 // f7d29000-f7d39000 rw-s FILEOFS M:m INODE FILENAME
202 // Size: nnn kB 202 // Size: nnn kB
203 // Rss: nnn kB 203 // Rss: nnn kB
204 // ..... 204 // .....
@@ -223,7 +223,7 @@ int FAST_FUNC procps_read_smaps(pid_t pid, struct smaprec *total,
223 tp = strchr(buf, '-'); 223 tp = strchr(buf, '-');
224 if (tp) { 224 if (tp) {
225 // We reached next mapping - the line of this form: 225 // We reached next mapping - the line of this form:
226 // f7d29000-f7d39000 rw-s ADR M:m OFS FILE 226 // f7d29000-f7d39000 rw-s FILEOFS M:m INODE FILENAME
227 227
228 if (cb) { 228 if (cb) {
229 /* If we have a previous record, there's nothing more 229 /* If we have a previous record, there's nothing more
@@ -242,7 +242,7 @@ int FAST_FUNC procps_read_smaps(pid_t pid, struct smaprec *total,
242 242
243 strncpy(currec.smap_mode, tp, sizeof(currec.smap_mode)-1); 243 strncpy(currec.smap_mode, tp, sizeof(currec.smap_mode)-1);
244 244
245 // skipping "rw-s ADR M:m OFS " 245 // skipping "rw-s FILEOFS M:m INODE "
246 tp = skip_whitespace(skip_fields(tp, 4)); 246 tp = skip_whitespace(skip_fields(tp, 4));
247 // filter out /dev/something (something != zero) 247 // filter out /dev/something (something != zero)
248 if (strncmp(tp, "/dev/", 5) != 0 || strcmp(tp, "/dev/zero\n") == 0) { 248 if (strncmp(tp, "/dev/", 5) != 0 || strcmp(tp, "/dev/zero\n") == 0) {