From: Eric Bollengier Date: Sun, 25 Oct 2009 14:16:40 +0000 (+0100) Subject: Change W/G to Wanted/Granted in lock dump X-Git-Tag: Release-5.0.0~281^2~37 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c1c48bc94db80260a223856b4cab7e71a968752b;p=bacula%2Fbacula Change W/G to Wanted/Granted in lock dump --- diff --git a/bacula/src/lib/lockmgr.c b/bacula/src/lib/lockmgr.c index d035e24e8a..f300419146 100644 --- a/bacula/src/lib/lockmgr.c +++ b/bacula/src/lib/lockmgr.c @@ -246,10 +246,11 @@ public: fprintf(fp, "threadid=%p max=%i current=%i\n", (void *)thread_id, max, current); for(int i=0; i<=current; i++) { - fprintf(fp, " lock=%p state=%c %s:%i\n", - lock_list[i].lock, lock_list[i].state, - lock_list[i].file, lock_list[i].line); - } + fprintf(fp, " lock=%p state=%s %s:%i\n", + lock_list[i].lock, + (lock_list[i].state=='W')?"Wanted ":"Granted", + lock_list[i].file, lock_list[i].line); + } } void dump(FILE *fp) {