Fix error format strings in mark API

This commit is contained in:
Rodrigo Arias 2024-07-24 15:23:30 +02:00
parent 74aa7b4ea6
commit 093c91521a
2 changed files with 3 additions and 3 deletions

View File

@ -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); struct mark_type *t = find_mark_type(m, type);
if (t != NULL) { if (t != NULL) {
err("mark type %d already defined", type); err("mark type %ld already defined", type);
return NULL; return NULL;
} }
@ -627,7 +627,7 @@ int
mark_event(struct emu *emu) mark_event(struct emu *emu)
{ {
if (emu->ev->payload_size != 8 + 4) { 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; return -1;
} }

View File

@ -1151,7 +1151,7 @@ ovni_mark_label(int32_t type, int64_t value, const char *label)
die("label '%s' already defined", label); die("label '%s' already defined", label);
if (json_object_dotset_string(meta, key, label) != 0) if (json_object_dotset_string(meta, key, label) != 0)
die("json_object_dotset_string() failed", type); die("json_object_dotset_string() failed");
} }
/** /**