From fd6f6c43cda421a1f141a4a14e2f3a58c1e40c6a Mon Sep 17 00:00:00 2001 From: Jean THOMAS Date: Thu, 9 Jul 2020 16:25:25 +0200 Subject: [PATCH] Fix formatting in headless example --- examples/headless/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/headless/main.c b/examples/headless/main.c index 7426d43..728e232 100644 --- a/examples/headless/main.c +++ b/examples/headless/main.c @@ -127,10 +127,11 @@ int main(int argc, char *argv[]) { for (size_t i = 0; i < 100; i++) { read_value = gram_read(&ctx, &(ddr[i])); expected_value = 0x12345678 + (1 << 10*i)%0x100000000; - printf("%p = %08x\n", &(ddr[i]), read_value); + printf("%p = %08x", &(ddr[i]), read_value); if (read_value != expected_value) { - printf("/!\\ DID NOT MATCH EXPECTED VALUE (%08x)\n", expected_value); + printf(" /!\\ DID NOT MATCH EXPECTED VALUE (%08x)", expected_value); } + printf("\n"); } close(serial_port); -- 2.30.2