summaryrefslogtreecommitdiff
path: root/lib/math
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@orcam.me.uk>2021-04-21 16:25:22 +0300
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2021-04-21 17:14:51 +0300
commit182dd5bad52c66a54c300fe320b772456572bf23 (patch)
tree983d3748b88e08acefa5b31ced5e16d8d3e2122a /lib/math
parent6f3377bc383b29ee380657b9b4da47e20f8fa6f1 (diff)
downloadlinux-182dd5bad52c66a54c300fe320b772456572bf23.tar.xz
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 #60 of the divident). Signed-off-by: Maciej W. Rozycki <macro@orcam.me.uk> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'lib/math')
-rw-r--r--lib/math/test_div64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/math/test_div64.c b/lib/math/test_div64.c
index eca8e8c6afe0..67bef184f2e3 100644
--- a/lib/math/test_div64.c
+++ b/lib/math/test_div64.c
@@ -170,7 +170,7 @@ static inline bool test_div64_verify(u64 quotient, u32 remainder, int i, int j)
if (!test_div64_verify(quotient, remainder, i, j)) { \
pr_err("ERROR: %016llx / %08x => %016llx,%08x\n", \
divident, divisor, quotient, remainder); \
- pr_err("ERROR: expected value=> %016llx,%08x\n", \
+ pr_err("ERROR: expected value => %016llx,%08x\n",\
test_div64_results[i][j].quotient, \
test_div64_results[i][j].remainder); \
result = false; \