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
This commit is contained in:
Andrew Deason 2009-06-16 19:09:43 +00:00 committed by Derrick Brashear
parent a44bee5615
commit e44c38c423
2 changed files with 12 additions and 2 deletions

View File

@ -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;
}

View File

@ -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, ...)
{