summaryrefslogtreecommitdiffstatshomepage
path: root/src/tools/show.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/show.c')
-rw-r--r--src/tools/show.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/show.c b/src/tools/show.c
index 624f789..7c32af9 100644
--- a/src/tools/show.c
+++ b/src/tools/show.c
@@ -288,7 +288,7 @@ static bool ugly_print(struct wgdevice *device, const char *param, bool with_int
printf("%s\t", key(peer->public_key));
if (peer->num_ipmasks) {
for_each_wgipmask(peer, ipmask, j)
- printf("%s/%u%s", ip(ipmask), ipmask->cidr, j == (size_t)peer->num_ipmasks - 1 ? "\n" : ", ");
+ printf("%s/%u%c", ip(ipmask), ipmask->cidr, j == (size_t)peer->num_ipmasks - 1 ? '\n' : ' ');
} else
printf("(none)\n");
}