File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 29
29
#include <linux/init.h>
30
30
#include <linux/types.h>
31
31
#include <linux/slab.h>
32
+ #include <linux/string_choices.h>
32
33
#include <linux/pm_runtime.h>
33
34
#include <linux/sysfs.h>
34
35
#include <linux/acpi.h>
@@ -197,7 +198,7 @@ static int __get_state(acpi_handle handle, u8 *state)
197
198
cur_state = sta & ACPI_POWER_RESOURCE_STATE_ON ;
198
199
199
200
acpi_handle_debug (handle , "Power resource is %s\n" ,
200
- cur_state ? "on" : "off" );
201
+ str_on_off ( cur_state ) );
201
202
202
203
* state = cur_state ;
203
204
return 0 ;
@@ -240,7 +241,7 @@ static int acpi_power_get_list_state(struct list_head *list, u8 *state)
240
241
break ;
241
242
}
242
243
243
- pr_debug ("Power resource list is %s\n" , cur_state ? "on" : "off" );
244
+ pr_debug ("Power resource list is %s\n" , str_on_off ( cur_state ) );
244
245
245
246
* state = cur_state ;
246
247
return 0 ;
You can’t perform that action at this time.
0 commit comments