weston/clients
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
..
calibrator.c log: remove "%m" from format strings by using strerror(errno) 2019-06-19 07:44:51 +00:00
clickdot.c log: remove "%m" from format strings by using strerror(errno) 2019-06-19 07:44:51 +00:00
cliptest.c log: remove "%m" from format strings by using strerror(errno) 2019-06-19 07:44:51 +00:00
confine.c log: remove "%m" from format strings by using strerror(errno) 2019-06-19 07:44:51 +00:00
desktop-shell.c log: remove "%m" from format strings by using strerror(errno) 2019-06-19 07:44:51 +00:00
dnd.c log: remove "%m" from format strings by using strerror(errno) 2019-06-19 07:44:51 +00:00
editor.c log: remove "%m" from format strings by using strerror(errno) 2019-06-19 07:44:51 +00:00
eventdemo.c log: remove "%m" from format strings by using strerror(errno) 2019-06-19 07:44:51 +00:00
flower.c log: remove "%m" from format strings by using strerror(errno) 2019-06-19 07:44:51 +00:00
fullscreen.c log: remove "%m" from format strings by using strerror(errno) 2019-06-19 07:44:51 +00:00
gears.c log: remove "%m" from format strings by using strerror(errno) 2019-06-19 07:44:51 +00:00
image.c log: remove "%m" from format strings by using strerror(errno) 2019-06-19 07:44:51 +00:00
ivi-shell-user-interface.c log: remove "%m" from format strings by using strerror(errno) 2019-06-19 07:44:51 +00:00
keyboard.c log: remove "%m" from format strings by using strerror(errno) 2019-06-19 07:44:51 +00:00
meson.build meson: link editor with gobject-2.0 2019-06-18 23:39:11 +03:00
multi-resource.c log: remove "%m" from format strings by using strerror(errno) 2019-06-19 07:44:51 +00:00
nested-client.c client: Fix segmentation fault in the case weston-nested 2018-06-07 18:07:08 +01:00
nested.c log: remove "%m" from format strings by using strerror(errno) 2019-06-19 07:44:51 +00:00
presentation-shm.c log: remove "%m" from format strings by using strerror(errno) 2019-06-19 07:44:51 +00:00
resizor.c log: remove "%m" from format strings by using strerror(errno) 2019-06-19 07:44:51 +00:00
scaler.c log: remove "%m" from format strings by using strerror(errno) 2019-06-19 07:44:51 +00:00
screenshot.c log: remove "%m" from format strings by using strerror(errno) 2019-06-19 07:44:51 +00:00
simple-damage.c log: remove "%m" from format strings by using strerror(errno) 2019-06-19 07:44:51 +00:00
simple-dmabuf-drm-data.h clients/simple-dmabuf-drm: import with dmabuf modifiers 2017-06-12 10:39:01 +01:00
simple-dmabuf-drm.c clients: use xdg_shell stable instead of v6 2019-02-15 11:18:38 +00:00
simple-dmabuf-egl.c FIX: weston: clients: typo in simple-dmabuf-egl.c 2019-06-19 07:44:51 +00:00
simple-dmabuf-v4l.c clients: use xdg_shell stable instead of v6 2019-02-15 11:18:38 +00:00
simple-egl.c clients: close unused keymap fd 2019-06-19 07:44:51 +00:00
simple-im.c log: remove "%m" from format strings by using strerror(errno) 2019-06-19 07:44:51 +00:00
simple-shm.c log: remove "%m" from format strings by using strerror(errno) 2019-06-19 07:44:51 +00:00
simple-touch.c log: remove "%m" from format strings by using strerror(errno) 2019-06-19 07:44:51 +00:00
smoke.c log: remove "%m" from format strings by using strerror(errno) 2019-06-19 07:44:51 +00:00
stacking.c log: remove "%m" from format strings by using strerror(errno) 2019-06-19 07:44:51 +00:00
subsurfaces.c log: remove "%m" from format strings by using strerror(errno) 2019-06-19 07:44:51 +00:00
terminal.c log: remove "%m" from format strings by using strerror(errno) 2019-06-19 07:44:51 +00:00
touch-calibrator.c clients: add a new touchscreen calibrator 2018-05-30 14:46:24 +03:00
transformed.c log: remove "%m" from format strings by using strerror(errno) 2019-06-19 07:44:51 +00:00
weston-debug.c log: remove "%m" from format strings by using strerror(errno) 2019-06-19 07:44:51 +00:00
weston-info.c log: remove "%m" from format strings by using strerror(errno) 2019-06-19 07:44:51 +00:00
window.c log: remove "%m" from format strings by using strerror(errno) 2019-06-19 07:44:51 +00:00
window.h clients: add a new touchscreen calibrator 2018-05-30 14:46:24 +03:00