diff options
| author | Jiri Moskovcak <jmoskovc@redhat.com> | 2010-08-31 14:39:57 +0200 |
|---|---|---|
| committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2010-08-31 14:39:57 +0200 |
| commit | e448ad512e34bdcca527bde0b301de404011fff5 (patch) | |
| tree | 053197f8853f167323f99178c098e4f6cb13dfda /lib/plugins/Kerneloops.cpp | |
| parent | cfc620a36d2052f6b2fb6c6fa5acb10c1187819e (diff) | |
| parent | 236104f6d07a44463c164074723c16421831e8e2 (diff) | |
| download | abrt-e448ad512e34bdcca527bde0b301de404011fff5.tar.gz abrt-e448ad512e34bdcca527bde0b301de404011fff5.tar.xz abrt-e448ad512e34bdcca527bde0b301de404011fff5.zip | |
Merge branch 'master' of ssh://git.fedorahosted.org/git/abrt
Diffstat (limited to 'lib/plugins/Kerneloops.cpp')
| -rw-r--r-- | lib/plugins/Kerneloops.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/plugins/Kerneloops.cpp b/lib/plugins/Kerneloops.cpp index 2ffc2e34..f6fa2606 100644 --- a/lib/plugins/Kerneloops.cpp +++ b/lib/plugins/Kerneloops.cpp @@ -126,17 +126,18 @@ std::string CAnalyzerKerneloops::GetLocalUUID(const char *pDebugDumpDir) { VERB3 log("Getting local universal unique identification"); - std::string oops; - CDebugDump dd; - if (!dd.Open(pDebugDumpDir)) + dump_dir_t *dd = dd_init(); + if (!dd_opendir(dd, pDebugDumpDir)) { + dd_close(dd); VERB1 log(_("Unable to open debug dump '%s'"), pDebugDumpDir); return std::string(""); } - dd.LoadText(FILENAME_BACKTRACE, oops); + char *oops = dd_loadtxt(dd, FILENAME_BACKTRACE); + unsigned hash = hash_oops_str(oops); + free(oops); - unsigned hash = hash_oops_str(oops.c_str()); hash &= 0x7FFFFFFF; return to_string(hash); |
