• 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
cursor Loading commit data...
doc Loading commit data...
egl Loading commit data...
m4 Loading commit data...
protocol Loading commit data...
src Loading commit data...
tests Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING Loading commit data...
Makefile.am Loading commit data...
README Loading commit data...
TODO Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
publish-doc Loading commit data...
releasing.txt Loading commit data...
wayland-scanner.m4 Loading commit data...
wayland-scanner.mk Loading commit data...