diff options
Diffstat (limited to 'modutils/modinfo.c')
-rw-r--r-- | modutils/modinfo.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/modutils/modinfo.c b/modutils/modinfo.c index 7c978d1da..0ab942890 100644 --- a/modutils/modinfo.c +++ b/modutils/modinfo.c | |||
@@ -34,14 +34,14 @@ struct modinfo_env { | |||
34 | int tags; | 34 | int tags; |
35 | }; | 35 | }; |
36 | 36 | ||
37 | static int display(const char *data, const char *pattern, int flag) | 37 | static void display(const char *data, const char *pattern, int flag) |
38 | { | 38 | { |
39 | if (flag) { | 39 | if (flag) { |
40 | int n = printf("%s:", pattern); | 40 | int n = printf("%s:", pattern); |
41 | while (n++ < 16) | 41 | while (n++ < 16) |
42 | bb_putchar(' '); | 42 | bb_putchar(' '); |
43 | } | 43 | } |
44 | return printf("%s%c", data, (option_mask32 & OPT_0) ? '\0' : '\n'); | 44 | printf("%s%c", data, (option_mask32 & OPT_0) ? '\0' : '\n'); |
45 | } | 45 | } |
46 | 46 | ||
47 | static void modinfo(const char *path, const char *version, | 47 | static void modinfo(const char *path, const char *version, |
@@ -104,7 +104,8 @@ static void modinfo(const char *path, const char *version, | |||
104 | /* field prefixes are 0x80 or 0x00 */ | 104 | /* field prefixes are 0x80 or 0x00 */ |
105 | if ((ptr[-1] & 0x7F) == '\0') { | 105 | if ((ptr[-1] & 0x7F) == '\0') { |
106 | ptr += length + 1; | 106 | ptr += length + 1; |
107 | ptr += display(ptr, pattern, (1<<j) != tags); | 107 | display(ptr, pattern, (1<<j) != tags); |
108 | ptr += strlen(ptr); | ||
108 | } | 109 | } |
109 | } | 110 | } |
110 | ++ptr; | 111 | ++ptr; |