Commit 88c9767d authored by Thomas Haller's avatar Thomas Haller

platform: fix nm_platform_lnk_gre_to_string() for tap links

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)
parent c780befe
Pipeline #31720 passed with stage
in 17 minutes and 49 seconds