summaryrefslogtreecommitdiffstats
path: root/wgtpkg-sign.c
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2015-12-03 12:18:13 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2015-12-03 12:18:13 +0100
commite3c4a363ea7b03a909f9b92c6657ea9129ee53f3 (patch)
treeb62976ff74cfb609f1a9bfabd04602e0211f59fb /wgtpkg-sign.c
parent38fbd847bcb58b9067ffe4bd56035ba4ccbf993b (diff)
Adding verbosity
Change-Id: Icc0fdc6a230e2bf11fccc4f7739009e7266f6b9d
Diffstat (limited to 'wgtpkg-sign.c')
-rw-r--r--wgtpkg-sign.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/wgtpkg-sign.c b/wgtpkg-sign.c
index 6a6a72a..cd506fc 100644
--- a/wgtpkg-sign.c
+++ b/wgtpkg-sign.c
@@ -63,6 +63,8 @@ static void usage()
" -d number the number of the distributor signature (zero for automatic)\n"
" -a the author signature\n"
" -f force overwriting\n"
+ " -q quiet\n"
+ " -v verbose\n"
"\n",
appname
);
@@ -75,6 +77,8 @@ static struct option options[] = {
{ "author", no_argument, NULL, 'a' },
{ "force", no_argument, NULL, 'f' },
{ "help", no_argument, NULL, 'h' },
+ { "quiet", no_argument, NULL, 'q' },
+ { "verbose", no_argument, NULL, 'v' },
{ NULL, 0, NULL, 0 }
};
@@ -187,7 +191,7 @@ int main(int ac, char **av)
return 1;
}
-printf("\n\nSIGNING content of directory %s for number %u\n", directory, number);
+ notice("-- SIGNING content of directory %s for number %u", directory, number);
certfiles[ncert] = NULL;
return !!create_digsig(number, keyfile, (const char**)certfiles);