coreboot/util
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
..
abuild util/abuild: Disable unspecified payload options 2018-05-17 12:06:33 +00:00
acpi
amdfwtool
amdtools
archive
arm_boot_tools/mksunxiboot
autoport util/autoport: Improve readme.me 2018-04-29 16:46:04 +00:00
bimgtool
bincfg
board_status board_status: Remove sudo when checking for cbmem with command 2018-05-03 15:07:34 +00:00
broadcom
cbfstool cbfstool: Drop -t parsing for add-payload command 2018-05-18 12:16:57 +00:00
cbmem util/cbmem: Fix compare function for qsort 2018-05-18 20:13:47 +00:00
checklist
chromeos
crossgcc buildgcc: Add missing '\' 2018-04-28 07:16:58 +00:00
docker util/docker: Add docker container that builds the sphinx documentation 2018-04-27 20:01:54 +00:00
dtd_parser
ectool
exynos
futility
fuzz-tests
genbuild_h
genprof
gitconfig
ifdfake
ifdtool ifdtool: Add a list of known platforms that support IFD_VERSION_2 2018-05-04 01:15:52 +00:00
intelmetool util/intelmetool: Be explicit about *kernel* cmdline arguments 2018-04-28 15:28:52 +00:00
inteltool
intelvbttool
ipqheader
k8resdump
kbc1126
kconfig
lint util/lint: Ignore whitespace, newlines, and licenses in vbt files 2018-05-09 16:19:36 +00:00
marvell
me_cleaner
mma
msrtool msrtool: add VIA C7 2018-05-15 11:14:10 +00:00
mtkheader
nvidia
nvramtool cbfs: Rename CBFS_TYPE_PAYLOAD to CBFS_TYPE_SELF 2018-05-04 10:30:24 +00:00
optionlist
post
qualcomm/scripts/cmm
release util/release/genrelnotes: Add "sifive" search pattern 2018-05-05 15:24:45 +00:00
riscv
rockchip
romcc
sconfig devicetree: Add USB device type 2018-05-11 08:59:51 +00:00
scripts
showdevicetree
spkmodem_recv
superiotool
testing
uio_usbdebug
vgabios
viatool
x86
xcompile util/xcompile: prefer riscv64 over riscv 2018-05-09 10:00:32 +00:00