Commit b8498bf0 authored by Ben Gamari's avatar Ben Gamari 🐢

rts/Eventlog: More descriptive error message

parent 2c93c6fd
...@@ -511,8 +511,10 @@ initEventLogging(const EventLogWriter *ev_writer) ...@@ -511,8 +511,10 @@ initEventLogging(const EventLogWriter *ev_writer)
event_log_writer = ev_writer; event_log_writer = ev_writer;
initEventLogWriter(); initEventLogWriter();
if (sizeof(EventDesc) / sizeof(char*) != NUM_GHC_EVENT_TAGS) { int num_descs = sizeof(EventDesc) / sizeof(char*);
barf("EventDesc array has the wrong number of elements"); if (num_descs != NUM_GHC_EVENT_TAGS) {
barf("EventDesc array has the wrong number of elements (%d, NUM_GHC_EVENT_TAGS=%d)",
num_descs, NUM_GHC_EVENT_TAGS);
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment