Change a fprintf to log_error

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2015-08-19 08:51:58 +10:00
parent 42f482b43d
commit 6d26728a16

View file

@ -1672,8 +1672,9 @@ libinput_post_event(struct libinput *libinput,
events_len *= 2;
events = realloc(events, events_len * sizeof *events);
if (!events) {
fprintf(stderr, "Failed to reallocate event ring "
"buffer");
log_error(libinput,
"Failed to reallocate event ring buffer. "
"Events may be discarded\n");
return;
}