1
0
Fork 0
mirror of https://github.com/albfan/miraclecast.git synced 2025-02-14 19:42:01 +00:00

miraclectl: fix printf offset for CONNECTED properties

We need at least 9 chars for the string "CONNECTED"..

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
This commit is contained in:
David Herrmann 2014-02-10 18:51:11 +01:00
parent bbe1050906
commit 3b188989db

View file

@ -911,7 +911,7 @@ static int verb_scan_list_peer(sd_bus *bus,
return log_bus_parser(r);
if (!strcmp(link, link_filter))
printf("%4s %-24s %-4s\n",
printf("%4s %-24s %-10s\n",
peer, name, connected ? "yes" : "no");
return 0;
@ -1070,7 +1070,7 @@ static int verb_scan(sd_bus *bus, char **args, unsigned int n)
args[1], bus_error_message(&err, r));
printf("Scan on link %s started, listing peers..\n", args[1]);
printf("%4s %-24s %-4s\n", "ID", "NAME", "CONNECTED");
printf("%4s %-24s %-10s\n", "ID", "NAME", "CONNECTED");
verb_scan_listen(bus, name);
r = sd_bus_call_method(bus,