Skip to content

Commit 182dd5b

Browse files
maciej-w-rozyckitsbogend
authored andcommittedApr 21, 2021
lib/math/test_div64: Fix error message formatting
Align the expected result with one actually produced for easier visual comparison; this has to take into account what the format specifiers will actually produce rather than the characters they consist of. E.g.: test_div64: ERROR: 10000000ab275080 / 00000009 => 01c71c71da20d00e,00000002 test_div64: ERROR: expected value => 0000000013045e47,00000001 (with a failure induced by setting bit torvalds#60 of the divident). Signed-off-by: Maciej W. Rozycki <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
1 parent 6f3377b commit 182dd5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/math/test_div64.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ static inline bool test_div64_verify(u64 quotient, u32 remainder, int i, int j)
170170
if (!test_div64_verify(quotient, remainder, i, j)) { \
171171
pr_err("ERROR: %016llx / %08x => %016llx,%08x\n", \
172172
divident, divisor, quotient, remainder); \
173-
pr_err("ERROR: expected value=> %016llx,%08x\n", \
173+
pr_err("ERROR: expected value => %016llx,%08x\n",\
174174
test_div64_results[i][j].quotient, \
175175
test_div64_results[i][j].remainder); \
176176
result = false; \

0 commit comments

Comments
 (0)
Please sign in to comment.