summaryrefslogtreecommitdiff
path: root/src/p11tool.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/p11tool.c')
-rw-r--r--src/p11tool.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/p11tool.c b/src/p11tool.c
index 8649a147cd..5c5e549e8f 100644
--- a/src/p11tool.c
+++ b/src/p11tool.c
@@ -95,21 +95,21 @@ static void cmd_parser(int argc, char **argv)
printf("Setting log level to %d\n", debug);
if ((ret = gnutls_global_init()) < 0) {
- fprintf(stderr, "global_init: %s", gnutls_strerror(ret));
+ fprintf(stderr, "global_init: %s\n", gnutls_strerror(ret));
exit(1);
}
if (HAVE_OPT(PROVIDER)) {
ret = gnutls_pkcs11_init(GNUTLS_PKCS11_FLAG_MANUAL, NULL);
if (ret < 0)
- fprintf(stderr, "pkcs11_init: %s",
+ fprintf(stderr, "pkcs11_init: %s\n",
gnutls_strerror(ret));
else {
ret =
gnutls_pkcs11_add_provider(OPT_ARG(PROVIDER),
NULL);
if (ret < 0) {
- fprintf(stderr, "pkcs11_add_provider: %s",
+ fprintf(stderr, "pkcs11_add_provider: %s\n",
gnutls_strerror(ret));
exit(1);
}
@@ -117,14 +117,14 @@ static void cmd_parser(int argc, char **argv)
} else {
ret = gnutls_pkcs11_init(GNUTLS_PKCS11_FLAG_AUTO, NULL);
if (ret < 0)
- fprintf(stderr, "pkcs11_init: %s",
+ fprintf(stderr, "pkcs11_init: %s\n",
gnutls_strerror(ret));
}
if (HAVE_OPT(OUTFILE)) {
outfile = safe_open_rw(OPT_ARG(OUTFILE), 0);
if (outfile == NULL) {
- fprintf(stderr, "%s", OPT_ARG(OUTFILE));
+ fprintf(stderr, "cannot open %s\n", OPT_ARG(OUTFILE));
exit(1);
}
} else