From: Yu Watanabe Date: Wed, 28 Apr 2021 15:47:39 +0000 (+0900) Subject: systemctl: fix build failure X-Git-Tag: v249-rc1~330 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e110d0f0f603794198919b934ed98dc878d4e6c4;p=thirdparty%2Fsystemd.git systemctl: fix build failure Follow-up for 255b1fc8a3055a7d59946a0fc483ee3885740398. --- diff --git a/src/systemctl/systemctl-show.c b/src/systemctl/systemctl-show.c index 912c07a0440..2df05464c61 100644 --- a/src/systemctl/systemctl-show.c +++ b/src/systemctl/systemctl-show.c @@ -1719,13 +1719,13 @@ static int print_property(const char *name, const char *expected_value, sd_bus_m while ((r = sd_bus_message_read(m, "(iqq)", &af, &nr_ports, &port_min)) > 0) { family = af == AF_INET ? "IPv4:" : af == AF_INET6 ? "IPv6:" : ""; if (nr_ports == 0) - bus_print_property_valuef(name, expected_value, value, "%sany", family); + bus_print_property_valuef(name, expected_value, flags, "%sany", family); else if (nr_ports == 1) bus_print_property_valuef( - name, expected_value, value, "%s%hu", family, port_min); + name, expected_value, flags, "%s%hu", family, port_min); else bus_print_property_valuef( - name, expected_value, value, "%s%hu-%hu", family, port_min, + name, expected_value, flags, "%s%hu-%hu", family, port_min, (uint16_t) (port_min + nr_ports - 1)); } if (r < 0)