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

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