From 647e8b6e473cc756feeb5e40cc7d064398678f0d Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 19 Feb 2019 15:21:47 +0100 Subject: executor: fix format strings clang complains that we pass an int to %hx. Fix it. --- executor/common_linux.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'executor') diff --git a/executor/common_linux.h b/executor/common_linux.h index b6860e30d..26137e5b7 100644 --- a/executor/common_linux.h +++ b/executor/common_linux.h @@ -440,7 +440,7 @@ static void initialize_tun(void) // Addresses are chosen to be in the same subnet as tun addresses. #define DEV_IPV4 "172.20.20.%d" -#define DEV_IPV6 "fe80::%02hx" +#define DEV_IPV6 "fe80::%02x" #define DEV_MAC 0x00aaaaaaaaaa // We test in a separate namespace, which does not have any network devices initially (even lo). @@ -616,7 +616,7 @@ static void initialize_netdevices_init(void) sprintf(addr, "172.30.%d.%d", i, (int)procid + 1); netlink_add_addr4(sock, dev, addr); if (!devtypes[i].noipv6) { - sprintf(addr, "fe88::%02hx:%02hx", i, (int)procid + 1); + sprintf(addr, "fe88::%02x:%02x", i, (int)procid + 1); netlink_add_addr6(sock, dev, addr); } int macsize = devtypes[i].macsize; -- cgit mrf-deployment