mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-26 02:19:26 +01:00
client: change str representation of bool fields
This commit is contained in:
parent
d5c7fea13d
commit
44e9e604f6
@ -157,7 +157,7 @@ static const char *get_powered_tostr(const void *data)
|
|||||||
{
|
{
|
||||||
const struct device *device = data;
|
const struct device *device = data;
|
||||||
|
|
||||||
return device->powered ? "yes" : "no";
|
return device->powered ? "on" : "off";
|
||||||
}
|
}
|
||||||
|
|
||||||
static void set_powered(void *data, struct l_dbus_message_iter *variant)
|
static void set_powered(void *data, struct l_dbus_message_iter *variant)
|
||||||
@ -178,7 +178,7 @@ static const char *get_scanning_tostr(const void *data)
|
|||||||
{
|
{
|
||||||
const struct device *device = data;
|
const struct device *device = data;
|
||||||
|
|
||||||
return device->scanning ? "scanning" : "";
|
return device->scanning ? "yes" : "no";
|
||||||
}
|
}
|
||||||
|
|
||||||
static void set_scanning(void *data, struct l_dbus_message_iter *variant)
|
static void set_scanning(void *data, struct l_dbus_message_iter *variant)
|
||||||
|
Loading…
Reference in New Issue
Block a user