diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2014-04-17 17:46:38 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2014-04-17 17:46:38 +0200 |
commit | 1d0c1ce1d91fc8e423d83d402777ecebf890d4ea (patch) | |
tree | a0b8338885ffe2c0ea4eb1a3d0e55dd546058ed8 /src/p11tool.c | |
parent | 54acad34b68e852d0631b2210bf5d4cdcac942fa (diff) | |
download | gnutls-1d0c1ce1d91fc8e423d83d402777ecebf890d4ea.tar.gz |
added newlines to p11tool error messages
Diffstat (limited to 'src/p11tool.c')
-rw-r--r-- | src/p11tool.c | 10 |
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 |