summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJiri Moskovcak <jmoskovc@redhat.com>2009-08-27 13:13:15 +0200
committerJiri Moskovcak <jmoskovc@redhat.com>2009-08-27 13:13:15 +0200
commitbc17e32391578ee0128fe73719d1f691613d18fe (patch)
tree69c268cf7cbc8c91bb75e87d93d4d1aa8cf43879 /lib
parentcaf38bbfe3279b9bea861e4d5b70f3c50c6e1755 (diff)
downloadabrt-bc17e32391578ee0128fe73719d1f691613d18fe.tar.gz
abrt-bc17e32391578ee0128fe73719d1f691613d18fe.tar.xz
abrt-bc17e32391578ee0128fe73719d1f691613d18fe.zip
don't encode the job id into message string, send it as an separate argument
Diffstat (limited to 'lib')
-rw-r--r--lib/CommLayer/CommLayerInner.cpp6
-rw-r--r--lib/CommLayer/Observer.h4
2 files changed, 4 insertions, 6 deletions
diff --git a/lib/CommLayer/CommLayerInner.cpp b/lib/CommLayer/CommLayerInner.cpp
index 1a58814f..ec4dc904 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
diff --git a/lib/CommLayer/Observer.h b/lib/CommLayer/Observer.h
index f60fde45..928c78a3 100644
--- a/lib/CommLayer/Observer.h
+++ b/lib/CommLayer/Observer.h
@@ -9,9 +9,9 @@
class CObserver {
public:
virtual ~CObserver() {}
- virtual void Status(const std::string& pMessage, const std::string& pDest="0") = 0;
+ virtual void Status(const std::string& pMessage, uint64_t pDest=0) = 0;
virtual void Debug(const std::string& pMessage) = 0;
- virtual void Warning(const std::string& pMessage) = 0;
+ virtual void Warning(const std::string& pMessage, uint64_t pDest=0) = 0;
};
#endif