weston/xwayland
Antonio Borneo 611fe36d24 log: remove "%m" from format strings by using strerror(errno)
The printf() format specifier "%m" is a glibc extension to print
the string returned by strerror(errno). While supported by other
libraries (e.g. uClibc and musl), it is not widely portable.

In Weston code the format string is often passed to a logging
function that calls other syscalls before the conversion of "%m"
takes place. If one of such syscall modifies the value in errno,
the conversion of "%m" will incorrectly report the error string
corresponding to the new value of errno.

Remove all the occurrences of the specifier "%m" in Weston code
by using directly the string returned by strerror(errno).
While there, fix some minor indentation issue.

Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
(cherry picked from commit 3957863667)
2019-06-19 07:44:51 +00:00
..
dnd.c xwayland: Create the drag-and-drop window in weston_wm_dnd_init 2016-11-22 12:01:37 +00:00
hash.c Make config.h inclusion consistent 2016-06-16 11:01:54 -07:00
hash.h include stdint.h for int32_t/uint32_t 2016-07-26 16:26:08 -07:00
launcher.c log: remove "%m" from format strings by using strerror(errno) 2019-06-19 07:44:51 +00:00
meson.build meson: better errors for xwayland deps 2018-12-31 15:16:53 +02:00
selection.c log: remove "%m" from format strings by using strerror(errno) 2019-06-19 07:44:51 +00:00
window-manager.c xwm: fix resize grab related crash 2019-02-16 09:38:34 +00:00
xwayland-api.h xwayland: Introduce a private struct for XWayland interface 2016-08-14 09:29:08 +02:00
xwayland-internal-interface.h xwayland: add set_toplevel_with_position to internal API 2017-01-18 13:21:02 +02:00
xwayland.h xwm: convert WM_DEBUG into a weston-debug scope 2018-09-17 13:29:48 +01:00