diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2017-08-04 18:36:55 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2017-08-04 18:37:34 +0200 |
commit | 947b2391c07f8a11f7bd4658f77cd03172fc221a (patch) | |
tree | c1cdedad593852a481778ffb41e30d42f03a4767 /procps | |
parent | 83d7785e413bbfc4c639c855a6e47f64bdc5da9a (diff) | |
download | busybox-w32-947b2391c07f8a11f7bd4658f77cd03172fc221a.tar.gz busybox-w32-947b2391c07f8a11f7bd4658f77cd03172fc221a.tar.bz2 busybox-w32-947b2391c07f8a11f7bd4658f77cd03172fc221a.zip |
pmap: tweak help text, show usage if no params are given
Noticed while auditing nofork/noexec status
function old new delta
pmap_main 70 80 +10
packed_usage 31747 31744 -3
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'procps')
-rw-r--r-- | procps/pmap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/procps/pmap.c b/procps/pmap.c index c8f728897..3dc733974 100644 --- a/procps/pmap.c +++ b/procps/pmap.c | |||
@@ -18,7 +18,7 @@ | |||
18 | //kbuild:lib-$(CONFIG_PMAP) += pmap.o | 18 | //kbuild:lib-$(CONFIG_PMAP) += pmap.o |
19 | 19 | ||
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 process memory usage" | 23 | //usage: "Display process memory usage" |
24 | //usage: "\n" | 24 | //usage: "\n" |
@@ -96,6 +96,7 @@ int pmap_main(int argc UNUSED_PARAM, char **argv) | |||
96 | unsigned opts; | 96 | unsigned opts; |
97 | int ret; | 97 | int ret; |
98 | 98 | ||
99 | opt_complementary = "-1"; /* min one arg */ | ||
99 | opts = getopt32(argv, "xq"); | 100 | opts = getopt32(argv, "xq"); |
100 | argv += optind; | 101 | argv += optind; |
101 | 102 | ||