diff options
author | Rob Austein <sra@hactrn.net> | 2016-09-02 01:31:17 -0400 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2016-09-02 01:31:17 -0400 |
commit | 5af178dee33b22cf189c085e41ca96423f809034 (patch) | |
tree | 6748c02763287ad1711f0e369256c063b649549f /tests/test-trng.c | |
parent | 65e8ef470b34a9c7af92f377da297095a0251890 (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-trng.c')
-rw-r--r-- | tests/test-trng.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-trng.c b/tests/test-trng.c index ebfe701..f570752 100644 --- a/tests/test-trng.c +++ b/tests/test-trng.c @@ -84,7 +84,7 @@ static hal_error_t test_random(const char *name) return err; } - printf("%08x ", rnd); + printf("%08lx ", (unsigned long) rnd); } printf("\n"); @@ -106,7 +106,7 @@ int main(void) } else { for (i = 0; i < 8; ++i) { - printf("%08x ", rnd[i]); + printf("%08lx ", (unsigned long) rnd[i]); } printf("\n"); } |