Formatting cleanup patch from Bryan Rittmeyer <bryan@ixiacom.com>.
-Erik
This commit is contained in:
parent
fca8050f0f
commit
ccb0a9ba88
14
lsmod.c
14
lsmod.c
@ -100,21 +100,21 @@ extern int lsmod_main(int argc, char **argv)
|
|||||||
for (j = 0, dn = deps; j < count; dn += strlen(dn) + 1, j++) {
|
for (j = 0, dn = deps; j < count; dn += strlen(dn) + 1, j++) {
|
||||||
printf("%s%s", dn, (j==count-1)? "":" ");
|
printf("%s%s", dn, (j==count-1)? "":" ");
|
||||||
}
|
}
|
||||||
if (count) printf("]");
|
if (count) printf("] ");
|
||||||
printf("\n");
|
|
||||||
|
|
||||||
if (info.flags & NEW_MOD_DELETED)
|
if (info.flags & NEW_MOD_DELETED)
|
||||||
printf(" (deleted)");
|
printf("(deleted)");
|
||||||
else if (info.flags & NEW_MOD_INITIALIZING)
|
else if (info.flags & NEW_MOD_INITIALIZING)
|
||||||
printf(" (initializing)");
|
printf("(initializing)");
|
||||||
else if (!(info.flags & NEW_MOD_RUNNING))
|
else if (!(info.flags & NEW_MOD_RUNNING))
|
||||||
printf(" (uninitialized)");
|
printf("(uninitialized)");
|
||||||
else {
|
else {
|
||||||
if (info.flags & NEW_MOD_AUTOCLEAN)
|
if (info.flags & NEW_MOD_AUTOCLEAN)
|
||||||
printf(" (autoclean)");
|
printf("(autoclean)");
|
||||||
if (!(info.flags & NEW_MOD_USED_ONCE))
|
if (!(info.flags & NEW_MOD_USED_ONCE))
|
||||||
printf(" (unused)");
|
printf("(unused)");
|
||||||
}
|
}
|
||||||
|
printf("\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -100,21 +100,21 @@ extern int lsmod_main(int argc, char **argv)
|
|||||||
for (j = 0, dn = deps; j < count; dn += strlen(dn) + 1, j++) {
|
for (j = 0, dn = deps; j < count; dn += strlen(dn) + 1, j++) {
|
||||||
printf("%s%s", dn, (j==count-1)? "":" ");
|
printf("%s%s", dn, (j==count-1)? "":" ");
|
||||||
}
|
}
|
||||||
if (count) printf("]");
|
if (count) printf("] ");
|
||||||
printf("\n");
|
|
||||||
|
|
||||||
if (info.flags & NEW_MOD_DELETED)
|
if (info.flags & NEW_MOD_DELETED)
|
||||||
printf(" (deleted)");
|
printf("(deleted)");
|
||||||
else if (info.flags & NEW_MOD_INITIALIZING)
|
else if (info.flags & NEW_MOD_INITIALIZING)
|
||||||
printf(" (initializing)");
|
printf("(initializing)");
|
||||||
else if (!(info.flags & NEW_MOD_RUNNING))
|
else if (!(info.flags & NEW_MOD_RUNNING))
|
||||||
printf(" (uninitialized)");
|
printf("(uninitialized)");
|
||||||
else {
|
else {
|
||||||
if (info.flags & NEW_MOD_AUTOCLEAN)
|
if (info.flags & NEW_MOD_AUTOCLEAN)
|
||||||
printf(" (autoclean)");
|
printf("(autoclean)");
|
||||||
if (!(info.flags & NEW_MOD_USED_ONCE))
|
if (!(info.flags & NEW_MOD_USED_ONCE))
|
||||||
printf(" (unused)");
|
printf("(unused)");
|
||||||
}
|
}
|
||||||
|
printf("\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user