From 515ec7960bf22c52e9e5d27c23a5dadad785a9da Mon Sep 17 00:00:00 2001 From: Gustavo Sverzut Barbieri Date: Mon, 19 Dec 2011 17:41:09 -0200 Subject: [PATCH] kmod-modinfo: fix typo and output format. * it's parm, not param (does not have the second 'a'); * output format requires ':' after the name. --- tools/kmod-modinfo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/kmod-modinfo.c b/tools/kmod-modinfo.c index 54035f5..f2c54f4 100644 --- a/tools/kmod-modinfo.c +++ b/tools/kmod-modinfo.c @@ -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, -- 2.7.4