From: Tj Date: Wed, 7 Oct 2015 23:32:42 +0000 (+0100) Subject: make sure there is something to report X-Git-Tag: v1.2~3 X-Git-Url: https://iam.tj/gitweb/gitweb.cgi?p=cfe_generate_password.git;a=commitdiff_plain;h=4d52cf071f1865a44f4ae8ad3cd9e58cef7a9dd7;ds=inline make sure there is something to report --- diff --git a/cfe_generate_password.c b/cfe_generate_password.c index 967543b..8746cd1 100644 --- a/cfe_generate_password.c +++ b/cfe_generate_password.c @@ -231,7 +231,8 @@ main(int argc, char **argv, char **env) if (! generate_pass(seed, password)) pr_error_exit(0, "unable to generate password"); - printf("MAC address: %s Timestamp: %s Seed: %s Password: %s\n", MAC_ADDR, timestamp, seed, password); + if (opt_seed || opt_pass) + printf("MAC address: %s Timestamp: %s Seed: %s Password: %s\n", MAC_ADDR, timestamp, seed, password); } return result;