Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t 1/2] lib/igt_aux: use proper directory for "pm_debug_messages" read
@ 2023-07-12 12:33 Lukasz Laguna
  2023-07-12 12:33 ` [igt-dev] [PATCH i-g-t 2/2] lib/igt_sysfs: add asserting helpers for read/write operations Lukasz Laguna
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: Lukasz Laguna @ 2023-07-12 12:33 UTC (permalink / raw)
  To: igt-dev; +Cc: kamil.konieczny

Wrong variable containing directory fd was passed to
igt_sysfs_get_boolean() function. Fix that.

Signed-off-by: Lukasz Laguna <lukasz.laguna@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");
 		igt_sysfs_set_boolean(power_dir, "pm_debug_messages", true);
 	}
 
-- 
2.40.0

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-07-13 12:35 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-12 12:33 [igt-dev] [PATCH i-g-t 1/2] lib/igt_aux: use proper directory for "pm_debug_messages" read Lukasz Laguna
2023-07-12 12:33 ` [igt-dev] [PATCH i-g-t 2/2] lib/igt_sysfs: add asserting helpers for read/write operations Lukasz Laguna
2023-07-12 13:05   ` Kamil Konieczny
2023-07-12 12:55 ` [igt-dev] [PATCH i-g-t 1/2] lib/igt_aux: use proper directory for "pm_debug_messages" read Kamil Konieczny
2023-07-12 14:07 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/2] " Patchwork
2023-07-12 15:06 ` [igt-dev] ○ CI.xeBAT: info " Patchwork
2023-07-12 17:50 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2023-07-12 18:08   ` Kamil Konieczny
2023-07-13 12:35 ` [igt-dev] ✓ Fi.CI.IGT: success " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox