• Antonio Borneo's avatar
    log: remove "%m" from format strings by using strerror(errno) · 294ed97e
    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 Wayland 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 Wayland code
    by using directly the string returned by strerror(errno).
    Signed-off-by: Antonio Borneo's avatarAntonio Borneo <borneo.antonio@gmail.com>
    294ed97e
Name
Last commit
Last update
..
.gitignore Loading commit data...
connection.c Loading commit data...
dtddata.S Loading commit data...
event-loop.c Loading commit data...
scanner.c Loading commit data...
wayland-client-core.h Loading commit data...
wayland-client-uninstalled.pc.in Loading commit data...
wayland-client.c Loading commit data...
wayland-client.h Loading commit data...
wayland-client.pc.in Loading commit data...
wayland-os.c Loading commit data...
wayland-os.h Loading commit data...
wayland-private.h Loading commit data...
wayland-scanner-uninstalled.pc.in Loading commit data...
wayland-scanner.pc.in Loading commit data...
wayland-server-core.h Loading commit data...
wayland-server-uninstalled.pc.in Loading commit data...
wayland-server.c Loading commit data...
wayland-server.h Loading commit data...
wayland-server.pc.in Loading commit data...
wayland-shm.c Loading commit data...
wayland-util.c Loading commit data...
wayland-util.h Loading commit data...
wayland-version.h.in Loading commit data...