efi_selftest: efi_st_memcmp return difference of bytes
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Fri, 6 Oct 2017 18:39:13 +0000 (20:39 +0200)
committerAlexander Graf <agraf@suse.de>
Mon, 9 Oct 2017 05:00:36 +0000 (07:00 +0200)
commitc155dfeb1e17181998e66830b677baa8983daf6b
tree3896ef339d163592dfa5d63fa71d0de5b6510b75
parent5ca23ed5bc63832baa24a6107537fdd229c458ae
efi_selftest: efi_st_memcmp return difference of bytes

If the memory regions are different efi_st_memcmp currently
returns the difference of the addresses. Insted the
difference of the first differing byte pair should be
returned.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
lib/efi_selftest/efi_selftest_util.c