]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
kmod-modinfo: fix typo and output format.
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Mon, 19 Dec 2011 19:41:09 +0000 (17:41 -0200)
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Mon, 19 Dec 2011 20:32:58 +0000 (18:32 -0200)
 * it's parm, not param (does not have the second 'a');
 * output format requires ':' after the name.

tools/kmod-modinfo.c

index 54035f5b64364ab7033f229542d36498c207f208..f2c54f401d0b79418c9339a698aaf40d81e1863f 100644 (file)
@@ -126,7 +126,7 @@ static int modinfo_do(struct kmod_module *mod)
 
                        name = value;
                        namelen = colon - value;
-                       if (strcmp(key, "param") == 0) {
+                       if (strcmp(key, "parm") == 0) {
                                param = colon + 1;
                                paramlen = strlen(param);
                                type = NULL;
@@ -169,13 +169,13 @@ static int modinfo_do(struct kmod_module *mod)
                               p->namelen, p->name, p->typelen, p->type,
                               separator);
                else if (p->type != NULL)
-                       printf("%-16s%.*s%.*s (%.*s)%c", "parm:",
+                       printf("%-16s%.*s:%.*s (%.*s)%c", "parm:",
                               p->namelen, p->name,
                               p->paramlen, p->param,
                               p->typelen, p->type,
                               separator);
                else
-                       printf("%-16s%.*s%.*s%c",
+                       printf("%-16s%.*s:%.*s%c",
                               "parm:",
                               p->namelen, p->name,
                               p->paramlen, p->param,