diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2017-06-18 14:05:24 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2017-06-23 10:21:54 +0200 |
commit | 4573502a1c0c84949d7195a9ea3ee8996bb29c0f (patch) | |
tree | 01a61b7d76e5d90b2d6b779764e60de37daf91be /src/utils.c | |
parent | c977984ecd856f8f35fe3b75dff3298aaf7e2067 (diff) |
Fix compilation warnings: use correct log type for uint32_t
Change-Id: Ic1e3255800999669ca9619bfceb4124c773eff2d
Diffstat (limited to 'src/utils.c')
-rw-r--r-- | src/utils.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/utils.c b/src/utils.c index 9e3414b2..a1881f06 100644 --- a/src/utils.c +++ b/src/utils.c @@ -26,6 +26,7 @@ #include <stdint.h> #include <errno.h> #include <stdio.h> +#include <inttypes.h> #include <osmocom/core/utils.h> #include <osmocom/core/bit64gen.h> @@ -54,7 +55,7 @@ const char *get_value_string(const struct value_string *vs, uint32_t val) if (str) return str; - snprintf(namebuf, sizeof(namebuf), "unknown 0x%x", val); + snprintf(namebuf, sizeof(namebuf), "unknown 0x%"PRIx32, val); namebuf[sizeof(namebuf) - 1] = '\0'; return namebuf; } |