[Pdbg] [PATCH 2/2] tests: Log error on stderr so it's flushed before assert
Amitay Isaacs
amitay at ozlabs.org
Fri Mar 6 15:55:16 AEDT 2020
Signed-off-by: Amitay Isaacs <amitay at ozlabs.org>
---
src/tests/libpdbg_p9_fapi_translation_test.C | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/tests/libpdbg_p9_fapi_translation_test.C b/src/tests/libpdbg_p9_fapi_translation_test.C
index 9e4d1a0..40ab2f7 100644
--- a/src/tests/libpdbg_p9_fapi_translation_test.C
+++ b/src/tests/libpdbg_p9_fapi_translation_test.C
@@ -25,9 +25,10 @@ int test_unit_translation(struct pdbg_target *target, p9ChipUnits_t cu, int inde
fapi_addr = p9_scominfo_createChipUnitScomAddr(cu, index, addr, 0);
if (pdbg_addr != fapi_addr)
- printf("PDBG Address 0x%016" PRIx64 " does not match FAPI Address 0x%016" PRIx64
- " for address 0x%016" PRIx64 " on target %s@%d\n",
- pdbg_addr, fapi_addr, addr, pdbg_target_path(target), index);
+ fprintf(stderr,
+ "PDBG Address 0x%016" PRIx64 " does not match FAPI Address 0x%016" PRIx64
+ " for address 0x%016" PRIx64 " on target %s@%d\n",
+ pdbg_addr, fapi_addr, addr, pdbg_target_path(target), index);
return pdbg_addr == fapi_addr;
}
--
2.24.1
More information about the Pdbg
mailing list