mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-05-02 05:57:26 +02:00
client: update device to use display_table_row
This commit is contained in:
parent
82cc80e54e
commit
6ce16686df
@ -54,9 +54,10 @@ static void display_device(const struct proxy_interface *proxy)
|
|||||||
l_free(caption);
|
l_free(caption);
|
||||||
|
|
||||||
if (device->adapter) {
|
if (device->adapter) {
|
||||||
display("%s%*s %-*s%-*s\n", MARGIN, 8, "", 20, "Adapter", 47,
|
display_table_row(MARGIN, 3, 8, "", 20, "Adapter", 47,
|
||||||
proxy_interface_get_identity_str(
|
proxy_interface_get_identity_str(
|
||||||
device->adapter) ? : "");
|
device->adapter) ? : "");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
display_table_footer();
|
display_table_footer();
|
||||||
@ -216,8 +217,7 @@ static void display_device_inline(const char *margin, const void *data)
|
|||||||
else
|
else
|
||||||
adapter_str = "-";
|
adapter_str = "-";
|
||||||
|
|
||||||
display("%s%-*s%-*s%-*s%-*s%-*s\n", margin,
|
display_table_row(margin, 5, 20, device->name ? : "",
|
||||||
20, device->name ? : "",
|
|
||||||
20, device->address ? : "",
|
20, device->address ? : "",
|
||||||
10, get_powered_tostr(device),
|
10, get_powered_tostr(device),
|
||||||
10, adapter_str,
|
10, adapter_str,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user