3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 14:49:24 +01:00

client: change str representation of bool fields

This commit is contained in:
Tim Kourt 2017-04-28 10:35:43 -07:00 committed by Denis Kenzior
parent d5c7fea13d
commit 44e9e604f6

View File

@ -157,7 +157,7 @@ static const char *get_powered_tostr(const void *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)
@ -178,7 +178,7 @@ static const char *get_scanning_tostr(const void *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)