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

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