From e44c38c423fee7f10540ee339c372dce043af10d Mon Sep 17 00:00:00 2001 From: Andrew Deason Date: Tue, 16 Jun 2009 19:09:43 +0000 Subject: [PATCH] ubik-fix-allbetter-loglevels-20090616 LICENSE IPL10 FIXES 124938 make allBetter log more sensibly; right now it's very loud. move it to level 25 --- src/ubik/recovery.c | 4 ++-- src/ubik/vote.c | 10 ++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/ubik/recovery.c b/src/ubik/recovery.c index 1d4aac757f..02295eba5a 100644 --- a/src/ubik/recovery.c +++ b/src/ubik/recovery.c @@ -114,7 +114,7 @@ urecovery_AllBetter(register struct ubik_dbase *adbase, int areadAny) { register afs_int32 rcode; - ubik_dprint("allbetter checking\n"); + ubik_dprint_25("allbetter checking\n"); rcode = 0; @@ -137,7 +137,7 @@ urecovery_AllBetter(register struct ubik_dbase *adbase, int areadAny) rcode = 1; } - ubik_dprint("allbetter: returning %d\n", rcode); + ubik_dprint_25("allbetter: returning %d\n", rcode); return rcode; } diff --git a/src/ubik/vote.c b/src/ubik/vote.c index fecc3f68b8..2c34d0ef08 100644 --- a/src/ubik/vote.c +++ b/src/ubik/vote.c @@ -557,6 +557,16 @@ SVOTE_GetSyncSite(register struct rx_call * rxcall, return 0; } +void +ubik_dprint_25(const char *format, ...) +{ + va_list ap; + + va_start(ap, format); + vViceLog(25, (format, ap)); + va_end(ap); +} + void ubik_dprint(const char *format, ...) {