diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2023-02-12 21:01:57 +0100 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2023-02-19 16:07:52 +0100 |
commit | ed65a00adc751d102c2041a4a9a32df9dad52b9e (patch) | |
tree | 6b2aa253d7b7c9e3a0c4c596530438d940514ec6 | |
parent | 81c1fbcba2f27f687c2a471f341502d47679f401 (diff) | |
download | netifd-ed65a00adc751d102c2041a4a9a32df9dad52b9e.tar.gz |
netifd: bridge: Fix format string position
This fixes the following compile error:
error: format not a string literal, argument types not checked [-Werror=format-nonliteral]
blobmsg_printf() has the following signature:
int blobmsg_printf(struct blob_buf *buf, const char *name, const char *format, ...)
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rw-r--r-- | bridge.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -934,7 +934,7 @@ bridge_dump_port(struct blob_buf *b, struct bridge_vlan_port *port) bool tagged = !(port->flags & BRVLAN_F_UNTAGGED); bool pvid = (port->flags & BRVLAN_F_PVID); - blobmsg_printf(b, "%s%s%s%s\n", port->ifname, + blobmsg_printf(b, NULL, "%s%s%s%s\n", port->ifname, tagged || pvid ? ":" : "", tagged ? "t" : "", pvid ? "*" : ""); |