Skip to content

Commit

Permalink
sm: Fix format specifiers for armhf
Browse files Browse the repository at this point in the history
Signed-off-by: Cole Miller <[email protected]>
  • Loading branch information
cole-miller committed Jul 8, 2024
1 parent 2f5ecff commit f00f0ca
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/lib/sm.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "sm.h"
#include <inttypes.h>
#include <stdatomic.h>
#include <stddef.h> /* NULL */
#include <stdio.h> /* fprintf */
Expand All @@ -21,13 +22,13 @@ int sm_state(const struct sm *m)

static inline void sm_obs(const struct sm *m)
{
tracef("%s pid: %d sm_id: %lu %s |\n",
tracef("%s pid: %d sm_id: %" PRIu64 " %s |\n",
m->name, m->pid, m->id, m->conf[sm_state(m)].name);
}

void sm_relate(const struct sm *from, const struct sm *to)
{
tracef("%s-to-%s opid: %d dpid: %d id: %lu id: %lu |\n",
tracef("%s-to-%s opid: %d dpid: %d id: %" PRIu64 " id: %" PRIu64 " |\n",
from->name, to->name, from->pid, to->pid, from->id, to->id);
}

Expand Down

0 comments on commit f00f0ca

Please sign in to comment.