weston/libweston
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
..
renderer-gl libweston: move gl-renderer into a subdir 2019-04-18 12:52:41 +03:00
animation.c Rename compositor.h to libweston/libweston.h 2019-04-18 12:31:46 +03:00
bindings.c Rename compositor.h to libweston/libweston.h 2019-04-18 12:31:46 +03:00
clipboard.c Rename compositor.h to libweston/libweston.h 2019-04-18 12:31:46 +03:00
compositor-drm.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00
compositor-fbdev.c Rename public backend headers 2019-04-18 12:31:46 +03:00
compositor-headless.c Rename windowed-output-api.h to libweston/windowed-output-api.h 2019-04-18 12:31:46 +03:00
compositor-rdp.c Rename public backend headers 2019-04-18 12:31:46 +03:00
compositor-wayland.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00
compositor-x11.c libweston: move gl-renderer into a subdir 2019-04-18 12:52:41 +03:00
compositor.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00
data-device.c data-device: send INVALID_FINISH when operation != dnd 2019-04-19 22:06:37 +05:30
dbus.c Rename compositor.h to libweston/libweston.h 2019-04-18 12:31:46 +03:00
dbus.h Rename compositor.h to libweston/libweston.h 2019-04-18 12:31:46 +03:00
git-version.h.meson Add Meson build system 2018-12-09 14:50:54 +02:00
input.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00
launcher-direct.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00
launcher-impl.h Rename compositor.h to libweston/libweston.h 2019-04-18 12:31:46 +03:00
launcher-logind.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00
launcher-util.c Rename compositor.h to libweston/libweston.h 2019-04-18 12:31:46 +03:00
launcher-util.h Rename compositor.h to libweston/libweston.h 2019-04-18 12:31:46 +03:00
launcher-weston-launch.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00
libbacklight.c Switch to use safe_strtoint instead of strtol 2016-08-06 18:19:22 -07:00
libbacklight.h Fix typos all around (thanks codespell!) 2019-02-20 16:47:35 +01:00
libinput-device.c Rename compositor.h to libweston/libweston.h 2019-04-18 12:31:46 +03:00
libinput-device.h Rename compositor.h to libweston/libweston.h 2019-04-18 12:31:46 +03:00
libinput-seat.c Rename compositor.h to libweston/libweston.h 2019-04-18 12:31:46 +03:00
libinput-seat.h Rename compositor.h to libweston/libweston.h 2019-04-18 12:31:46 +03:00
linux-dmabuf.c Rename compositor.h to libweston/libweston.h 2019-04-18 12:31:46 +03:00
linux-dmabuf.h linux-dmabuf: send deprecated format events 2018-01-18 11:24:19 +00:00
linux-explicit-synchronization.c Rename compositor.h to libweston/libweston.h 2019-04-18 12:31:46 +03:00
linux-explicit-synchronization.h libweston: Support zwp_surface_synchronization_v1.set_acquire_fence 2019-02-06 12:21:56 +00:00
linux-sync-file-uapi.h libweston: Introduce an internal linux sync file API 2019-02-06 12:21:56 +00:00
linux-sync-file.c libweston: export weston_linux_sync_file_read_timestamp() 2019-04-18 12:50:55 +03:00
linux-sync-file.h libweston: export weston_linux_sync_file_read_timestamp() 2019-04-18 12:50:55 +03:00
log.c Rename compositor.h to libweston/libweston.h 2019-04-18 12:31:46 +03:00
meson.build libweston: move gl-renderer into a subdir 2019-04-18 12:52:41 +03:00
noop-renderer.c Rename compositor.h to libweston/libweston.h 2019-04-18 12:31:46 +03:00
pixel-formats.c Fix typos all around (thanks codespell!) 2019-02-20 16:47:35 +01:00
pixel-formats.h pixel-formats: Added pixel_format_get_info_shm() helper for printing SHM buffers 2018-11-20 18:00:09 +02:00
pixman-renderer.c libweston: Support zwp_surface_synchronization_v1.get_release 2019-02-06 12:21:56 +00:00
pixman-renderer.h Rename compositor.h to libweston/libweston.h 2019-04-18 12:31:46 +03:00
plugin-registry.c Rename plugin-registry.h to libweston/plugin-registry.h 2019-04-18 12:31:46 +03:00
screenshooter.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00
spring-tool.c Rename compositor.h to libweston/libweston.h 2019-04-18 12:31:46 +03:00
timeline.c Rename compositor.h to libweston/libweston.h 2019-04-18 12:31:46 +03:00
timeline.h timeline: Add GPU timestamp timepoint argument 2017-09-29 10:20:42 +03:00
touch-calibration.c Rename zalloc.h to libweston/zalloc.h 2019-04-18 12:31:46 +03:00
vaapi-recorder.c Rename compositor.h to libweston/libweston.h 2019-04-18 12:31:46 +03:00
vaapi-recorder.h Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00
vertex-clipping.c Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00
vertex-clipping.h Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00
weston-debug.c Rename compositor.h to libweston/libweston.h 2019-04-18 12:31:46 +03:00
weston-debug.h libweston/weston-debug: Add a easy way to determine if the debug protocol has been enabled 2018-12-18 15:37:34 +02:00
weston-launch.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00
weston-launch.h Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00
zoom.c Rename compositor.h to libweston/libweston.h 2019-04-18 12:31:46 +03:00