[igt-dev] [PATCH i-g-t 1/2] lib/igt_aux: use proper directory for "pm_debug_messages" read
Kamil Konieczny
kamil.konieczny at linux.intel.com
Wed Jul 12 12:55:12 UTC 2023
Hi Lukasz,
On 2023-07-12 at 14:33:12 +0200, Lukasz Laguna wrote:
> Wrong variable containing directory fd was passed to
> igt_sysfs_get_boolean() function. Fix that.
>
> Signed-off-by: Lukasz Laguna <lukasz.laguna at intel.com>
> ---
> lib/igt_aux.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/lib/igt_aux.c b/lib/igt_aux.c
> index fd5103043..c5fb10185 100644
> --- a/lib/igt_aux.c
> +++ b/lib/igt_aux.c
> @@ -962,7 +962,7 @@ static void igt_aux_enable_pm_suspend_dbg(int power_dir)
>
> /* pm_debug_messages depends on CONFIG_PM_SLEEP_DEBUG */
> if (!faccessat(power_dir, "pm_debug_messages", R_OK | W_OK, 0)) {
> - __pm_debug_messages_state = igt_sysfs_get_boolean(sysfs_fd, "pm_debug_messages");
> + __pm_debug_messages_state = igt_sysfs_get_boolean(power_dir, "pm_debug_messages");
Thank you for a fix,
Reviewed-by: Kamil Konieczny <kamil.konieczny at linux.intel.com>
> igt_sysfs_set_boolean(power_dir, "pm_debug_messages", true);
> }
>
> --
> 2.40.0
>
More information about the igt-dev
mailing list