aboutsummaryrefslogtreecommitdiff
path: root/tests/test-bus.c
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2016-09-02 01:31:17 -0400
committerRob Austein <sra@hactrn.net>2016-09-02 01:31:17 -0400
commit5af178dee33b22cf189c085e41ca96423f809034 (patch)
tree6748c02763287ad1711f0e369256c063b649549f /tests/test-bus.c
parent65e8ef470b34a9c7af92f377da297095a0251890 (diff)
Code to convert between text and internal forms of UUIDs.
Includes a few cosmetic fixes to address gcc format string warnings and git trailing whitespace warnings.
Diffstat (limited to 'tests/test-bus.c')
-rw-r--r--tests/test-bus.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test-bus.c b/tests/test-bus.c
index b4a3e1c..94d7a70 100644
--- a/tests/test-bus.c
+++ b/tests/test-bus.c
@@ -68,7 +68,8 @@ static int sanity(const hal_core_t *board_core)
}
if (data != rnd) {
- printf("Data bus fail: expected %08x, got %08x, diff %08x\n", rnd, data, data ^ rnd);
+ printf("Data bus fail: expected %08lx, got %08lx, diff %08lx\n",
+ (unsigned long) rnd, (unsigned long) data, (unsigned long) (data ^ rnd));
return 1;
}