summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGwan-gyeong Mun <gwan-gyeong.mun@intel.com>2020-07-17 20:23:43 +0300
committerJosé Roberto de Souza <jose.souza@intel.com>2020-07-29 09:20:38 -0700
commitd47bb767757b2e64ced4a5bb95de6397e8dc709c (patch)
tree1f1c785b1bc7d285512691ae5b1676fb083db9cf /lib
parent95d906bf458634850626f7e5d6a707191022279f (diff)
tests/kms_psr2_su: Change to igt_info when the failing of PSR2 enabling
The psr_print_debugfs() function uses igt_debug() for logging. As igt_require() does not raise printing out of IGT_LOG_DEBUG level. It changes igt_debug() to igt_info() for getting log on skipping test case of kms_psr2_su. v2: Address José's review comments. - Use igt_info for getting log instead of using igt_assert in order to avoid failure of psr test. Cc: José Roberto de Souza <jose.souza@intel.com> Signed-off-by: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com> Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/igt_psr.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/igt_psr.c b/lib/igt_psr.c
index 899784dc..6cdb97bc 100644
--- a/lib/igt_psr.c
+++ b/lib/igt_psr.c
@@ -45,8 +45,8 @@ static bool psr_active_check(int debugfs_fd, enum psr_mode mode)
ret = igt_debugfs_simple_read(debugfs_fd, "i915_edp_psr_status",
buf, sizeof(buf));
if (ret < 0) {
- igt_debug("Could not read i915_edp_psr_status: %s\n",
- strerror(-ret));
+ igt_info("Could not read i915_edp_psr_status: %s\n",
+ strerror(-ret));
return false;
}
@@ -244,10 +244,10 @@ void psr_print_debugfs(int debugfs_fd)
ret = igt_debugfs_simple_read(debugfs_fd, "i915_edp_psr_status", buf,
sizeof(buf));
if (ret < 0) {
- igt_debug("Could not read i915_edp_psr_status: %s\n",
- strerror(-ret));
+ igt_info("Could not read i915_edp_psr_status: %s\n",
+ strerror(-ret));
return;
}
- igt_debug("%s", buf);
+ igt_info("%s", buf);
}