diff options
Diffstat (limited to 'procps')
-rw-r--r-- | procps/pmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/procps/pmap.c b/procps/pmap.c index fd995a54d..aa221cfb8 100644 --- a/procps/pmap.c +++ b/procps/pmap.c | |||
@@ -20,7 +20,7 @@ | |||
20 | //usage:#define pmap_trivial_usage | 20 | //usage:#define pmap_trivial_usage |
21 | //usage: "[-xq] PID" | 21 | //usage: "[-xq] PID" |
22 | //usage:#define pmap_full_usage "\n\n" | 22 | //usage:#define pmap_full_usage "\n\n" |
23 | //usage: "Display detailed process memory usage" | 23 | //usage: "Display process memory usage" |
24 | //usage: "\n" | 24 | //usage: "\n" |
25 | //usage: "\n -x Show details" | 25 | //usage: "\n -x Show details" |
26 | //usage: "\n -q Quiet" | 26 | //usage: "\n -q Quiet" |
@@ -66,7 +66,7 @@ static int procps_get_maps(pid_t pid, unsigned opt) | |||
66 | int ret; | 66 | int ret; |
67 | char buf[256]; | 67 | char buf[256]; |
68 | 68 | ||
69 | read_cmdline(buf, sizeof(buf), pid, "no such process"); | 69 | read_cmdline(buf, sizeof(buf), pid, NULL); |
70 | printf("%u: %s\n", (int)pid, buf); | 70 | printf("%u: %s\n", (int)pid, buf); |
71 | 71 | ||
72 | if (!(opt & OPT_q) && (opt & OPT_x)) | 72 | if (!(opt & OPT_q) && (opt & OPT_x)) |