• Thomas Haller's avatar
    platform: fix nm_platform_lnk_gre_to_string() for tap links · 88c9767d
    Thomas Haller authored
    Why didn't we get a compiler warning about this bug?
    At least clang (3.8.0-2ubuntu4, Ubuntu 16.04) warns:
    
        CC       src/platform/src_libNetworkManagerBase_la-nm-platform.lo
      ../src/platform/nm-platform.c:5389:14: error: data argument not used by format string [-Werror,-Wformat-extra-args]
                          lnk->remote ? nm_sprintf_buf (str_remote, " remote %s", nm_utils_inet4_ntop (lnk->remote, str_remote1)) : "",
                          ^
    
    Fixes: 4c2862b9 ('platform: add gretap tunnels support')
    (cherry picked from commit dfb899f4)
    (cherry picked from commit ed88c71f)
    (cherry picked from commit 400293d3)
    88c9767d
nm-platform.c 234 KB