Tweak the "pretty lsmod for 2.6" patch to be seperately selectable.

Patch from Takeharu Kato.
This commit is contained in:
Rob Landley
2005-05-04 23:55:06 +00:00
parent 918f2ab3d7
commit 4f65360a5f
2 changed files with 14 additions and 5 deletions

View File

@@ -164,7 +164,7 @@ extern int lsmod_main(int argc, char **argv)
{
printf("Module Size Used by");
check_tainted();
#if defined(CONFIG_FEATURE_2_6_MODULES)
#if defined(CONFIG_FEATURE_LSMOD_PRETTY_2_6_OUTPUT)
{
FILE *file;
char line[4096];
@@ -204,6 +204,7 @@ extern int lsmod_main(int argc, char **argv)
}
fclose(file);
}
return 0; /* Success */
#else
if (bb_xprint_file_by_name("/proc/modules") < 0) {
return 0;