mirror of
https://github.com/albfan/miraclecast.git
synced 2025-03-09 23:38:56 +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:
parent
bbe1050906
commit
3b188989db
1 changed files with 2 additions and 2 deletions
|
@ -911,7 +911,7 @@ static int verb_scan_list_peer(sd_bus *bus,
|
||||||
return log_bus_parser(r);
|
return log_bus_parser(r);
|
||||||
|
|
||||||
if (!strcmp(link, link_filter))
|
if (!strcmp(link, link_filter))
|
||||||
printf("%4s %-24s %-4s\n",
|
printf("%4s %-24s %-10s\n",
|
||||||
peer, name, connected ? "yes" : "no");
|
peer, name, connected ? "yes" : "no");
|
||||||
|
|
||||||
return 0;
|
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));
|
args[1], bus_error_message(&err, r));
|
||||||
|
|
||||||
printf("Scan on link %s started, listing peers..\n", args[1]);
|
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);
|
verb_scan_listen(bus, name);
|
||||||
|
|
||||||
r = sd_bus_call_method(bus,
|
r = sd_bus_call_method(bus,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue