diff options
author | rsc <devnull@localhost> | 2006-12-01 03:21:31 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2006-12-01 03:21:31 +0000 |
commit | 8904d7bd3e901786572dfcced8a3ad6fd4b6e7fc (patch) | |
tree | 8e68d634f03c98bef6ecbdc506d83608fb62efca /src/cmd/venti/srv | |
parent | a51dffd3f20b09f75f04cbc964ae9bf2afe5d3b4 (diff) | |
download | plan9port-8904d7bd3e901786572dfcced8a3ad6fd4b6e7fc.tar.gz plan9port-8904d7bd3e901786572dfcced8a3ad6fd4b6e7fc.tar.bz2 plan9port-8904d7bd3e901786572dfcced8a3ad6fd4b6e7fc.zip |
do not print EOk messages
Diffstat (limited to 'src/cmd/venti/srv')
-rw-r--r-- | src/cmd/venti/srv/utils.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/cmd/venti/srv/utils.c b/src/cmd/venti/srv/utils.c index 0fd0f04f..b9e1eb5f 100644 --- a/src/cmd/venti/srv/utils.c +++ b/src/cmd/venti/srv/utils.c @@ -92,10 +92,12 @@ logit(int severity, char *fmt, va_list args) s = vsmprint(fmt, args); if(s == nil) return nil; - if(argv0 == nil) - fprint(2, "%s: err %d: %s\n", argv0, severity, s); - else - fprint(2, "err %d: %s\n", severity, s); + if(severity != EOk){ + if(argv0 == nil) + fprint(2, "%s: err %d: %s\n", argv0, severity, s); + else + fprint(2, "err %d: %s\n", severity, s); + } return s; } |