diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2017-02-07 11:44:51 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2017-02-08 09:50:44 +1000 |
commit | 0702f2e840370be53d129fc5e3c243dac47ee720 (patch) | |
tree | d54716457dcd37ffd461decfa44ce5f760d4ba59 /hw | |
parent | 3eb964e25243056dd998f52d3b00171b71c89189 (diff) |
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>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/xwayland/xwayland-input.c | 6 | ||||
-rw-r--r-- | hw/xwayland/xwayland-output.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/hw/xwayland/xwayland-input.c b/hw/xwayland/xwayland-input.c index 580df09b9..cc83ef868 100644 --- a/hw/xwayland/xwayland-input.c +++ b/hw/xwayland/xwayland-input.c @@ -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; } diff --git a/hw/xwayland/xwayland-output.c b/hw/xwayland/xwayland-output.c index f3ce7639e..d13a7288c 100644 --- a/hw/xwayland/xwayland-output.c +++ b/hw/xwayland/xwayland-output.c @@ -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; } |