xwayland: replace hardcoded function name with __func__ in error msg

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Olivier Fourdan <ofourdan@redhat.com>
This commit is contained in:
Peter Hutterer 2017-02-07 11:44:51 +10:00
parent 3eb964e252
commit 0702f2e840
2 changed files with 4 additions and 4 deletions

View File

@ -854,7 +854,7 @@ touch_handle_down(void *data, struct wl_touch *wl_touch,
xwl_touch = calloc(1, sizeof *xwl_touch);
if (xwl_touch == NULL) {
ErrorF("touch_handle_down ENOMEM");
ErrorF("%s: ENOMEM\n", __func__);
return;
}
@ -1125,7 +1125,7 @@ create_input_device(struct xwl_screen *xwl_screen, uint32_t id, uint32_t version
xwl_seat = calloc(1, sizeof *xwl_seat);
if (xwl_seat == NULL) {
ErrorF("create_input ENOMEM\n");
ErrorF("%s: ENOMEM\n", __func__);
return;
}
@ -1452,7 +1452,7 @@ xwl_pointer_warp_emulator_create(struct xwl_seat *xwl_seat)
warp_emulator = calloc(1, sizeof *warp_emulator);
if (!warp_emulator) {
ErrorF("%s: ENOMEM", __func__);
ErrorF("%s: ENOMEM\n", __func__);
return NULL;
}

View File

@ -244,7 +244,7 @@ xwl_output_create(struct xwl_screen *xwl_screen, uint32_t id)
xwl_output = calloc(1, sizeof *xwl_output);
if (xwl_output == NULL) {
ErrorF("create_output ENOMEM\n");
ErrorF("%s ENOMEM\n", __func__);
return NULL;
}