This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
Harald Welte gerrit-no-reply at lists.osmocom.orgHarald Welte has submitted this change and it was merged. Change subject: fsm.c: Fix compilation warning: Use PRIu32 for uint32_t ...................................................................... fsm.c: Fix compilation warning: Use PRIu32 for uint32_t Change-Id: I4c441b20b250c34656f1e8330d6bb4b1ce2b8423 --- M src/fsm.c 1 file changed, 4 insertions(+), 3 deletions(-) Approvals: Max: Looks good to me, but someone else must approve Neels Hofmeyr: Looks good to me, approved Jenkins Builder: Verified diff --git a/src/fsm.c b/src/fsm.c index fbe22d7..16f5d65 100644 --- a/src/fsm.c +++ b/src/fsm.c @@ -21,6 +21,7 @@ #include <errno.h> #include <stdbool.h> #include <string.h> +#include <inttypes.h> #include <osmocom/core/fsm.h> #include <osmocom/core/talloc.h> @@ -284,7 +285,7 @@ { static char buf[32]; if (!fsm->event_names) { - snprintf(buf, sizeof(buf), "%u", event); + snprintf(buf, sizeof(buf), "%"PRIu32, event); return buf; } else return get_value_string(fsm->event_names, event); @@ -314,7 +315,7 @@ { static char buf[32]; if (state >= fsm->num_states) { - snprintf(buf, sizeof(buf), "unknown %u", state); + snprintf(buf, sizeof(buf), "unknown %"PRIu32, state); return buf; } else return fsm->states[state].name; @@ -408,7 +409,7 @@ if (!fi) { LOGPSRC(DLGLOBAL, LOGL_ERROR, file, line, - "Trying to dispatch event %u to non-existent" + "Trying to dispatch event %"PRIu32" to non-existent" " FSM instance!\n", event); osmo_log_backtrace(DLGLOBAL, LOGL_ERROR); return -ENODEV; -- To view, visit https://gerrit.osmocom.org/2960 To unsubscribe, visit https://gerrit.osmocom.org/settings Gerrit-MessageType: merged Gerrit-Change-Id: I4c441b20b250c34656f1e8330d6bb4b1ce2b8423 Gerrit-PatchSet: 3 Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de> Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: Max <msuraev at sysmocom.de> Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr at sysmocom.de>