weston/clients
Antonio Borneo 3957863667 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>
2019-05-02 22:10:30 +02:00
..
calibrator.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00
clickdot.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00
cliptest.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00
confine.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00
desktop-shell.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00
dnd.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00
editor.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00
eventdemo.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00
flower.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00
fullscreen.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00
gears.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00
image.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00
ivi-shell-user-interface.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00
keyboard.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00
meson.build build: turn vertex-clipping.c into a dependency 2019-04-18 12:50:55 +03:00
multi-resource.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02: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-05-02 22:10:30 +02:00
presentation-shm.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00
resizor.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00
scaler.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00
screenshot.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00
simple-damage.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02: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 Rename zalloc.h to libweston/zalloc.h 2019-04-18 12:31:46 +03:00
simple-dmabuf-egl.c Rename zalloc.h to libweston/zalloc.h 2019-04-18 12:31:46 +03:00
simple-dmabuf-v4l.c Rename zalloc.h to libweston/zalloc.h 2019-04-18 12:31:46 +03:00
simple-egl.c clients: close unused keymap fd 2019-04-29 18:11:45 +02:00
simple-im.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00
simple-shm.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00
simple-touch.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00
smoke.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00
stacking.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00
subsurfaces.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00
terminal.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00
touch-calibrator.c Rename matrix.h to libweston/matrix.h 2019-04-18 12:31:46 +03:00
transformed.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00
weston-debug.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00
weston-info.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00
window.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00
window.h Rename zalloc.h to libweston/zalloc.h 2019-04-18 12:31:46 +03:00