diff options
author | landley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2005-05-04 23:55:06 +0000 |
---|---|---|
committer | landley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2005-05-04 23:55:06 +0000 |
commit | e6d6f9ae25e0fae2cdefbd3e1e7903b69cdced08 (patch) | |
tree | ff4252a2dc6d31f7a8d1785043967757bd26dd58 /modutils/lsmod.c | |
parent | cc06ace9b4d16089d3a7fd53a56a667690da7d4e (diff) | |
download | busybox-w32-e6d6f9ae25e0fae2cdefbd3e1e7903b69cdced08.tar.gz busybox-w32-e6d6f9ae25e0fae2cdefbd3e1e7903b69cdced08.tar.bz2 busybox-w32-e6d6f9ae25e0fae2cdefbd3e1e7903b69cdced08.zip |
Tweak the "pretty lsmod for 2.6" patch to be seperately selectable.
Patch from Takeharu Kato.
git-svn-id: svn://busybox.net/trunk/busybox@10248 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'modutils/lsmod.c')
-rw-r--r-- | modutils/lsmod.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modutils/lsmod.c b/modutils/lsmod.c index 525fc2dc2..f2ee19f8f 100644 --- a/modutils/lsmod.c +++ b/modutils/lsmod.c | |||
@@ -164,7 +164,7 @@ extern int lsmod_main(int argc, char **argv) | |||
164 | { | 164 | { |
165 | printf("Module Size Used by"); | 165 | printf("Module Size Used by"); |
166 | check_tainted(); | 166 | check_tainted(); |
167 | #if defined(CONFIG_FEATURE_2_6_MODULES) | 167 | #if defined(CONFIG_FEATURE_LSMOD_PRETTY_2_6_OUTPUT) |
168 | { | 168 | { |
169 | FILE *file; | 169 | FILE *file; |
170 | char line[4096]; | 170 | char line[4096]; |
@@ -204,6 +204,7 @@ extern int lsmod_main(int argc, char **argv) | |||
204 | } | 204 | } |
205 | fclose(file); | 205 | fclose(file); |
206 | } | 206 | } |
207 | return 0; /* Success */ | ||
207 | #else | 208 | #else |
208 | if (bb_xprint_file_by_name("/proc/modules") < 0) { | 209 | if (bb_xprint_file_by_name("/proc/modules") < 0) { |
209 | return 0; | 210 | return 0; |