From: Lukasz Laguna <lukasz.laguna@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: kamil.konieczny@intel.com
Subject: [igt-dev] [PATCH i-g-t 1/2] lib/igt_aux: use proper directory for "pm_debug_messages" read
Date: Wed, 12 Jul 2023 14:33:12 +0200 [thread overview]
Message-ID: <20230712123313.27999-1-lukasz.laguna@intel.com> (raw)
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
next reply other threads:[~2023-07-12 12:33 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-12 12:33 Lukasz Laguna [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230712123313.27999-1-lukasz.laguna@intel.com \
--to=lukasz.laguna@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=kamil.konieczny@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox