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-7.0.0~2598^2~37 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=29c4d0e732c5f53aaa6512efae9884ea9578626a;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) {