From: Kern Sibbald Date: Tue, 4 Dec 2012 11:11:04 +0000 (+0100) Subject: Add jobid to Pmsg output X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ad24539b586b2c938dbfbb0c53ace9f92bad3856;p=bacula%2Fbacula Add jobid to Pmsg output --- diff --git a/bacula/src/lib/message.c b/bacula/src/lib/message.c index 82c5b4ef41..53f72c98a3 100644 --- a/bacula/src/lib/message.c +++ b/bacula/src/lib/message.c @@ -1139,13 +1139,15 @@ p_msg(const char *file, int line, int level, const char *fmt,...) #ifdef FULL_LOCATION if (level >= 0) { - len = bsnprintf(buf, sizeof(buf), "%s: %s:%d ", my_name, get_basename(file), line); + len = bsnprintf(buf, sizeof(buf), "%s: %s:%d-%u ", + my_name, get_basename(file), line, get_jobid_from_tsd()); } else { len = 0; } #else - len = 0; + len = 0; #endif + va_start(arg_ptr, fmt); bvsnprintf(buf+len, sizeof(buf)-len, (char *)fmt, arg_ptr); va_end(arg_ptr);