• Antonio Borneo's avatar
    log: remove "%m" from format strings by using strerror(errno) · 39578636
    Antonio Borneo authored
    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's avatarAntonio Borneo <borneo.antonio@gmail.com>
    39578636
Name
Last commit
Last update
..
calibrator.c Loading commit data...
clickdot.c Loading commit data...
cliptest.c Loading commit data...
confine.c Loading commit data...
desktop-shell.c Loading commit data...
dnd.c Loading commit data...
editor.c Loading commit data...
eventdemo.c Loading commit data...
flower.c Loading commit data...
fullscreen.c Loading commit data...
gears.c Loading commit data...
image.c Loading commit data...
ivi-shell-user-interface.c Loading commit data...
keyboard.c Loading commit data...
meson.build Loading commit data...
multi-resource.c Loading commit data...
nested-client.c Loading commit data...
nested.c Loading commit data...
presentation-shm.c Loading commit data...
resizor.c Loading commit data...
scaler.c Loading commit data...
screenshot.c Loading commit data...
simple-damage.c Loading commit data...
simple-dmabuf-drm-data.h Loading commit data...
simple-dmabuf-drm.c Loading commit data...
simple-dmabuf-egl.c Loading commit data...
simple-dmabuf-v4l.c Loading commit data...
simple-egl.c Loading commit data...
simple-im.c Loading commit data...
simple-shm.c Loading commit data...
simple-touch.c Loading commit data...
smoke.c Loading commit data...
stacking.c Loading commit data...
subsurfaces.c Loading commit data...
terminal.c Loading commit data...
touch-calibrator.c Loading commit data...
transformed.c Loading commit data...
weston-debug.c Loading commit data...
weston-info.c Loading commit data...
window.c Loading commit data...
window.h Loading commit data...