diff options
-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; } |