From d1a1034cbe1492a5b4cfdac5c3190dd5d069bc4f Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Thu, 28 Apr 2011 19:40:57 +0000 Subject: cwfs: reduce verbosity, added -d options if you want it anyway --- sys/src/cmd/cwfs/auth.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'sys/src/cmd/cwfs/auth.c') diff --git a/sys/src/cmd/cwfs/auth.c b/sys/src/cmd/cwfs/auth.c index f55717c8e..d54a40dee 100644 --- a/sys/src/cmd/cwfs/auth.c +++ b/sys/src/cmd/cwfs/auth.c @@ -24,16 +24,18 @@ nvrcheck(void) uchar csum; if (readnvram(&nvr, NVread) < 0) { - print("nvrcheck: can't read nvram\n"); + fprint(2, "nvrcheck: can't read nvram\n"); return 1; } else gotnvr = 1; - print("nvr read\n"); + + if(chatty) + print("nvr read\n"); csum = nvcsum(nvr.machkey, sizeof nvr.machkey); if(csum != nvr.machsum) { - print("\n\n ** NVR key checksum is incorrect **\n"); - print(" ** set password to allow attaches **\n\n"); + fprint(2, "\n\n ** NVR key checksum is incorrect **\n"); + fprint(2, " ** set password to allow attaches **\n\n"); memset(nvr.machkey, 0, sizeof nvr.machkey); return 1; } -- cgit v1.2.3