Signed-off-by: Nicolas Morey-Chaisemartin <nmo...@kalray.eu>
---
 example/classifier/odp_classifier.c | 2 +-
 example/timer/odp_timer_test.c      | 4 ++--
 2 files changed, 3 insertions(+), 3 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..352d4c8 100644
--- a/example/timer/odp_timer_test.c
+++ b/example/timer/odp_timer_test.c
@@ -180,8 +180,8 @@ 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",
-                                     ttp->tim, tick);
+                       EXAMPLE_ABORT("Unexpected timeout received (timer %" 
PRIx32
+                                     ", tick %" PRIu64 ")\n", ttp->tim, tick);
                }
                EXAMPLE_DBG("  [%i] timeout, tick %"PRIu64"\n", thr, tick);
 
_______________________________________________
lng-odp mailing list
lng-odp@lists.linaro.org
https://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to