]> err.no Git - yubikey-personalization.old/commitdiff
Only write verbose messages when then verbose flag is true
authorRichard Levitte <levitte@lp.se>
Sun, 5 Oct 2008 07:39:15 +0000 (07:39 +0000)
committerRichard Levitte <levitte@lp.se>
Sun, 5 Oct 2008 07:39:15 +0000 (07:39 +0000)
ykpersonalize.c

index 2289293de9e0abe6c990460e8954c592278f5b80..61593ca66cce1a8079dae09665a0ae1792495419 100644 (file)
@@ -186,7 +186,8 @@ main(int argc, char **argv)
                                ykp_write_config(cfg, writer, stdout);
                                exit_code = 0;
                        } else {
-                               printf(" failure\n");
+                               if (verbose)
+                                       printf(" failure\n");
                        }
                        if (!yk_close_key(yk))
                                break;