Blame SOURCES/0154-abrt-merge-pstoreoops-merge-files-in-descending-orde.patch

a60cd7
From ed68fcd4d3c8ef4ed3def66e3a237715567ac358 Mon Sep 17 00:00:00 2001
a60cd7
From: "knoha@redhat.com" <knoha@redhat.com>
a60cd7
Date: Fri, 24 Jul 2015 07:56:02 +0200
a60cd7
Subject: [PATCH] abrt-merge-pstoreoops: merge files in descending order
a60cd7
a60cd7
fs/pstore reads the data from kmsg_dump_get_buffer(), which starts at
a60cd7
the end of the kmsg buffer, in a while loop and increases Part no. in
a60cd7
each iteration.
a60cd7
a60cd7
Related: rhbz#1233662
a60cd7
a60cd7
Signed-off-by: Jakub Filak <jfilak@redhat.com>
a60cd7
---
a60cd7
 src/hooks/abrt-merge-pstoreoops.c | 4 ++--
a60cd7
 1 file changed, 2 insertions(+), 2 deletions(-)
a60cd7
a60cd7
diff --git a/src/hooks/abrt-merge-pstoreoops.c b/src/hooks/abrt-merge-pstoreoops.c
a60cd7
index 6fc3109..36f1e0b 100644
a60cd7
--- a/src/hooks/abrt-merge-pstoreoops.c
a60cd7
+++ b/src/hooks/abrt-merge-pstoreoops.c
a60cd7
@@ -64,9 +64,9 @@ int compare_oops_texts(const void *a, const void *b)
a60cd7
         return -1;
a60cd7
     if (aa->panic_no > bb->panic_no)
a60cd7
         return 1;
a60cd7
-    if (aa->part_no < bb->part_no)
a60cd7
+    if (aa->part_no > bb->part_no)
a60cd7
         return -1;
a60cd7
-    return (aa->part_no > bb->part_no);
a60cd7
+    return (aa->part_no < bb->part_no);
a60cd7
 }
a60cd7
 
a60cd7
 int main(int argc, char **argv)
a60cd7
-- 
a60cd7
2.4.3
a60cd7