aboutsummaryrefslogtreecommitdiff
path: root/halfsiphash.c
diff options
context:
space:
mode:
authorKyle Altendorf <sda@fstab.net>2019-09-13 23:02:54 -0400
committerKyle Altendorf <sda@fstab.net>2019-09-13 23:02:54 -0400
commit4194687abaa2654e08f195d8eb9eaff23cef3495 (patch)
treebad7ec96fdb321689603d8d1b6b791134380d2b9 /halfsiphash.c
parentMerge pull request #13 from altendky/use_UINTxx_C_macros (diff)
downloadsiphash-4194687abaa2654e08f195d8eb9eaff23cef3495.tar.gz
siphash-4194687abaa2654e08f195d8eb9eaff23cef3495.tar.xz
Use size_t and fixed with format specifiers for printf()
Diffstat (limited to 'halfsiphash.c')
-rw-r--r--halfsiphash.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/halfsiphash.c b/halfsiphash.c
index 689e125..657c6d7 100644
--- a/halfsiphash.c
+++ b/halfsiphash.c
@@ -14,6 +14,7 @@
<http://creativecommons.org/publicdomain/zero/1.0/>.
*/
#include <assert.h>
+#include <inttypes.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
@@ -55,10 +56,10 @@
#ifdef DEBUG
#define TRACE \
do { \
- printf("(%3d) v0 %08x\n", (int)inlen, v0); \
- printf("(%3d) v1 %08x\n", (int)inlen, v1); \
- printf("(%3d) v2 %08x\n", (int)inlen, v2); \
- printf("(%3d) v3 %08x\n", (int)inlen, v3); \
+ printf("(%3zu) v0 %08"PRIx32"\n", inlen, v0); \
+ printf("(%3zu) v1 %08"PRIx32"\n", inlen, v1); \
+ printf("(%3zu) v2 %08"PRIx32"\n", inlen, v2); \
+ printf("(%3zu) v3 %08"PRIx32"\n", inlen, v3); \
} while (0)
#else
#define TRACE