Print the event type name for invalid events

This commit is contained in:
Peter Hutterer 2024-08-07 10:47:25 +10:00
parent 917b79f83e
commit e411b85a33
2 changed files with 4 additions and 2 deletions

View file

@ -154,7 +154,8 @@ check_event_type(struct ei_event *event,
if (!rc)
log_bug_client(ei_event_get_context(event),
"Invalid event type %u passed to %s()",
"Invalid event type (%s) %u passed to %s()",
ei_event_type_to_string(type),
type, function_name);
return rc;

View file

@ -157,7 +157,8 @@ check_event_type(struct eis_event *event,
if (!rc)
log_bug_client(eis_event_get_context(event),
"Invalid event type %u passed to %s()",
"Invalid event type %s (%u) passed to %s()",
eis_event_type_to_string(type),
type, function_name);
return rc;