weston/compositor
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
..
cms-colord.c cms-colord: find a good head 2018-04-12 14:26:17 +03:00
cms-helper.c include stdint.h for int32_t/uint32_t 2016-07-26 16:26:08 -07:00
cms-helper.h Move weston source to compositor/ 2016-06-23 17:44:54 +03:00
cms-static.c weston: Properly namespace modules entrypoint 2017-01-17 18:24:56 +01:00
main.c log: remove "%m" from format strings by using strerror(errno) 2019-06-19 07:44:51 +00:00
meson.build meson: link cms-colord with glib and gobject 2019-06-18 23:39:12 +03:00
screen-share.c log: remove "%m" from format strings by using strerror(errno) 2019-06-19 07:44:51 +00:00
systemd-notify.c systemd: fix Wincompatible-pointer-type 2017-01-27 17:25:11 +02:00
text-backend.c compositor: Add some handy wrappers for wet_get_binary_path() 2018-12-18 15:37:34 +02:00
weston-screenshooter.c compositor: Install weston-screenshooter in BINDIR 2018-12-18 15:37:34 +02:00
weston.desktop Remove dbus-launch from weston.desktop 2017-01-18 12:21:57 +00:00
weston.h compositor: Add some handy wrappers for wet_get_binary_path() 2018-12-18 15:37:34 +02:00
weston.pc.in libweston: use new versioning scheme 2016-08-02 13:52:58 +03:00
xwayland.c log: remove "%m" from format strings by using strerror(errno) 2019-06-19 07:44:51 +00:00