From: Jean THOMAS Date: Thu, 9 Jul 2020 14:25:25 +0000 (+0200) Subject: Fix formatting in headless example X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fd6f6c43cda421a1f141a4a14e2f3a58c1e40c6a;p=gram.git Fix formatting in headless example --- 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);