]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
systemctl: fix build failure
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 28 Apr 2021 15:47:39 +0000 (00:47 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 28 Apr 2021 18:03:55 +0000 (03:03 +0900)
Follow-up for 255b1fc8a3055a7d59946a0fc483ee3885740398.

src/systemctl/systemctl-show.c

index 912c07a0440e4e38ebbbd667d42ba5334b24ede0..2df05464c6106dd55f81fc4ae736f6b93b70ae89 100644 (file)
@@ -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)