From bc17e32391578ee0128fe73719d1f691613d18fe Mon Sep 17 00:00:00 2001 From: Jiri Moskovcak Date: Thu, 27 Aug 2009 13:13:15 +0200 Subject: don't encode the job id into message string, send it as an separate argument --- lib/CommLayer/CommLayerInner.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lib/CommLayer/CommLayerInner.cpp') diff --git a/lib/CommLayer/CommLayerInner.cpp b/lib/CommLayer/CommLayerInner.cpp index 1a58814..ec4dc90 100644 --- a/lib/CommLayer/CommLayerInner.cpp +++ b/lib/CommLayer/CommLayerInner.cpp @@ -18,8 +18,7 @@ void warn_client(const std::string& pMessage) pthread_t self = pthread_self(); if (self != s_main_id) { - std::string s = ssprintf("%%%llx: %s", (unsigned long long)self, pMessage.c_str()); - s_pObs->Warning(s); + s_pObs->Warning(pMessage,(uint64_t)self); //log("w: '%s'", s.c_str()); } else @@ -38,8 +37,7 @@ void update_client(const std::string& pMessage) pthread_t self = pthread_self(); if (self != s_main_id) { - std::string s = ssprintf("%%%llx: %s", (unsigned long long)self, pMessage.c_str()); - s_pObs->Status(s); + s_pObs->Status(pMessage, (uint64_t)self); //log("u: '%s'", s.c_str()); } else -- cgit