From 2fba06a47601565f3dc4684ebfb68befaf23d89e Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Tue, 4 Dec 2012 12:11:04 +0100 Subject: [PATCH] Add jobid to Pmsg output --- bacula/src/lib/message.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); -- 2.39.5