diff options
author | Masami Hiramatsu <mhiramat@kernel.org> | 2017-03-23 22:33:32 +0900 |
---|---|---|
committer | Shuah Khan <shuahkh@osg.samsung.com> | 2017-04-11 09:39:06 -0600 |
commit | 9e14ef602b9e19b5e3d4594494e45a00ed2bc6ca (patch) | |
tree | ef6b5045d9ff1958b02b9b5046d59aba71456d67 /crypto/lz4hc.c | |
parent | 7ba31340920f6fe6c97a29bccc2ba434395525bd (diff) | |
download | blackbird-op-linux-9e14ef602b9e19b5e3d4594494e45a00ed2bc6ca.tar.gz blackbird-op-linux-9e14ef602b9e19b5e3d4594494e45a00ed2bc6ca.zip |
kselftest: ftrace: Fix to compare a zero-filled hex value
Fix to compare a zero-filled hexadecimal value with a part of
string of long hexadecimal value.
In check_types(), the last part of testcase compares with
the hex value formatted by "%x" with a part of a string of
long hex value (trimmed by tail -c and head -c). However,
if that part of long hex value contains zero (e.g. "05" of
"a3082059"), printf generated value (e.g. "5") is diffrent
string, and the test case failed.
To fix this, pass "%02x" instead of "%x" to printf.
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Acked-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Diffstat (limited to 'crypto/lz4hc.c')
0 files changed, 0 insertions, 0 deletions