From 8904d7bd3e901786572dfcced8a3ad6fd4b6e7fc Mon Sep 17 00:00:00 2001 From: rsc Date: Fri, 1 Dec 2006 03:21:31 +0000 Subject: do not print EOk messages --- src/cmd/venti/srv/utils.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/cmd') 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; } -- cgit v1.2.3