aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorNicolas Morey-Chaisemartin <nmorey@kalray.eu>2015-06-11 08:27:58 +0200
committerMaxim Uvarov <maxim.uvarov@linaro.org>2015-06-12 12:35:26 +0300
commit73aa8c38606cd9b211f48b05f0763705fc0d3ec8 (patch)
treecb72c70c9c712aa00e123e95e8a619ed70fba314 /example
parentcc0f448c9bc8163e5541ef34510ef0c539266cd9 (diff)
example: use SCNx32/PRIx32 macro
Signed-off-by: Nicolas Morey-Chaisemartin <nmorey@kalray.eu> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'example')
-rw-r--r--example/classifier/odp_classifier.c2
-rw-r--r--example/timer/odp_timer_test.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/example/classifier/odp_classifier.c b/example/classifier/odp_classifier.c
index 63678b7..643e16c 100644
--- a/example/classifier/odp_classifier.c
+++ b/example/classifier/odp_classifier.c
@@ -173,7 +173,7 @@ int parse_ipv4_mask(const char *str, uint32_t *mask)
uint32_t b;
int ret;
- ret = sscanf(str, "%x", &b);
+ ret = sscanf(str, "%" SCNx32, &b);
*mask = b;
return ret != 1;
}
diff --git a/example/timer/odp_timer_test.c b/example/timer/odp_timer_test.c
index 5e4306e..f4af0e2 100644
--- a/example/timer/odp_timer_test.c
+++ b/example/timer/odp_timer_test.c
@@ -180,7 +180,7 @@ static void test_abs_timeouts(int thr, test_globals_t *gbls)
if (!odp_timeout_fresh(tmo)) {
/* Not the expected expiration tick, timer has
* been reset or cancelled or freed */
- EXAMPLE_ABORT("Unexpected timeout received (timer %x, tick %"PRIu64")\n",
+ EXAMPLE_ABORT("Unexpected timeout received (timer %" PRIx32 ", tick %" PRIu64 ")\n",
ttp->tim, tick);
}
EXAMPLE_DBG(" [%i] timeout, tick %"PRIu64"\n", thr, tick);