coreboot-kgpe-d16/util/cbmem
Furquan Shaikh 8f567320ba util/cbmem: Fix compare function for qsort
compare_timestamp_entries will fail for entries that are different by
at least 2^32 since entry_stamp is 64-bit and the return for compare
is 32-bit. This change fixes compare_timestamps by actually comparing
the entries to return 1, -1 or 0 instead of doing math on them.

TEST=Verified that "cbmem -t" sorts entries correctly on previously
failing entries.

Change-Id: I67c3c4d1761715ecbf259935fabb22ce37c3966e
Signed-off-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: https://review.coreboot.org/26357
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
2018-05-18 20:13:47 +00:00
..
Makefile Rename __attribute__((packed)) --> __packed 2017-07-13 19:45:59 +00:00
cbmem.c util/cbmem: Fix compare function for qsort 2018-05-18 20:13:47 +00:00
compiler.h util/cbmem, util/cbfstool: resolve macro errors on FreeBSD 2017-08-11 18:54:23 +00:00