From 29c4d0e732c5f53aaa6512efae9884ea9578626a Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Sun, 25 Oct 2009 15:16:40 +0100 Subject: [PATCH] Change W/G to Wanted/Granted in lock dump --- bacula/src/lib/lockmgr.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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) { -- 2.39.5