]> git.proxmox.com Git - mirror_iproute2.git/blobdiff - ip/link_vti6.c
ip/tunnel: Use print_0xhex() instead of print_string()
[mirror_iproute2.git] / ip / link_vti6.c
index a63f49fa8d0203898f105c9dc8cce6b67c11c72b..952dbb08aa1143a03598cb77e43f6839ce4bbcfd 100644 (file)
@@ -212,9 +212,8 @@ static void vti6_print_opt(struct link_util *lu, FILE *f, struct rtattr *tb[])
                __u32 fwmark = rta_getattr_u32(tb[IFLA_VTI_FWMARK]);
 
                if (fwmark) {
-                       snprintf(s2, sizeof(s2), "0x%x", fwmark);
-
-                       print_string(PRINT_ANY, "fwmark", "fwmark %s ", s2);
+                       print_0xhex(PRINT_ANY,
+                                   "fwmark", "fwmark 0x%x ", fwmark);
                }
        }
 }