summaryrefslogtreecommitdiff
path: root/sys/src/cmd/cwfs/auth.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@centraldogma>2011-04-28 19:40:57 +0000
committercinap_lenrek <cinap_lenrek@centraldogma>2011-04-28 19:40:57 +0000
commitd1a1034cbe1492a5b4cfdac5c3190dd5d069bc4f (patch)
tree716c15fb5221aa4180a82df3c791f9846f2832ce /sys/src/cmd/cwfs/auth.c
parentc67c29952af0a50c265bf34fc317518fd43a8950 (diff)
cwfs: reduce verbosity, added -d options if you want it anyway
Diffstat (limited to 'sys/src/cmd/cwfs/auth.c')
-rw-r--r--sys/src/cmd/cwfs/auth.c10
1 files changed, 6 insertions, 4 deletions
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;
}