From 093c91521af4c15b7f9a1c543b30ceb2f07becc2 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Wed, 24 Jul 2024 15:23:30 +0200 Subject: [PATCH] Fix error format strings in mark API --- src/emu/ovni/mark.c | 4 ++-- src/rt/ovni.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/emu/ovni/mark.c b/src/emu/ovni/mark.c index 3eb123b..950ae00 100644 --- a/src/emu/ovni/mark.c +++ b/src/emu/ovni/mark.c @@ -147,7 +147,7 @@ create_mark_type(struct ovni_mark_emu *m, long type, enum chan_type ctype, const struct mark_type *t = find_mark_type(m, type); if (t != NULL) { - err("mark type %d already defined", type); + err("mark type %ld already defined", type); return NULL; } @@ -627,7 +627,7 @@ int mark_event(struct emu *emu) { if (emu->ev->payload_size != 8 + 4) { - err("unexpected payload size %d", emu->ev->payload_size); + err("unexpected payload size %zd", emu->ev->payload_size); return -1; } diff --git a/src/rt/ovni.c b/src/rt/ovni.c index f9fa567..2ce748c 100644 --- a/src/rt/ovni.c +++ b/src/rt/ovni.c @@ -1151,7 +1151,7 @@ ovni_mark_label(int32_t type, int64_t value, const char *label) die("label '%s' already defined", label); if (json_object_dotset_string(meta, key, label) != 0) - die("json_object_dotset_string() failed", type); + die("json_object_dotset_string() failed"); } /**