summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorKarel Klic <kklic@redhat.com>2010-04-09 10:46:44 +0200
committerKarel Klic <kklic@redhat.com>2010-04-09 10:46:44 +0200
commitb56efc2b943e5d4e9af7d01626e7e7ee55fd8dad (patch)
tree23dcde19635424ddeda427fb4695d32b0ad8019f /lib
parentd74d9e7731aa5c2e8113237fe938adb252465c37 (diff)
parent3d49da4ed27a90bfc7003c217c1acc87667bfee4 (diff)
downloadabrt-b56efc2b943e5d4e9af7d01626e7e7ee55fd8dad.tar.gz
abrt-b56efc2b943e5d4e9af7d01626e7e7ee55fd8dad.tar.xz
abrt-b56efc2b943e5d4e9af7d01626e7e7ee55fd8dad.zip
Merge branch 'master' of ssh://git.fedorahosted.org/git/abrt
Diffstat (limited to 'lib')
-rw-r--r--lib/Plugins/Bugzilla.cpp7
-rw-r--r--lib/Plugins/KerneloopsReporter.cpp2
2 files changed, 8 insertions, 1 deletions
diff --git a/lib/Plugins/Bugzilla.cpp b/lib/Plugins/Bugzilla.cpp
index e59e9a7a..bffccc12 100644
--- a/lib/Plugins/Bugzilla.cpp
+++ b/lib/Plugins/Bugzilla.cpp
@@ -352,8 +352,15 @@ xmlrpc_int32 ctx::new_bug(const map_crash_data_t& pCrashData)
const std::string& arch = get_crash_data_item_content(pCrashData, FILENAME_ARCHITECTURE);
const std::string& duphash = get_crash_data_item_content(pCrashData, CD_DUPHASH);
const char *reason = get_crash_data_item_content_or_NULL(pCrashData, FILENAME_REASON);
+ const char *function = get_crash_data_item_content_or_NULL(pCrashData, FILENAME_CRASH_FUNCTION);
std::string summary = "[abrt] crash in " + package;
+ if (function != NULL && strlen(function) < 30)
+ {
+ summary += ": ";
+ summary += function;
+ }
+
if (reason != NULL)
{
summary += ": ";
diff --git a/lib/Plugins/KerneloopsReporter.cpp b/lib/Plugins/KerneloopsReporter.cpp
index 8c4fe114..5be0c8d3 100644
--- a/lib/Plugins/KerneloopsReporter.cpp
+++ b/lib/Plugins/KerneloopsReporter.cpp
@@ -102,7 +102,7 @@ std::string CKerneloopsReporter::Report(const map_crash_data_t& pCrashData,
if (ret) {
/* FIXME: be more informative */
- throw CABRTException(EXCEP_PLUGIN, "CKerneloopsReporter::Report(): Report has not been sent");
+ throw CABRTException(EXCEP_PLUGIN, "Kernel oops has not been sent");
}
/* Server replies with:
* 200 thank you for submitting the kernel oops information