diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/igt_psr.c | 2 | ||||
-rw-r--r-- | lib/igt_psr.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/igt_psr.c b/lib/igt_psr.c index 0ddfb64f..c105bb6e 100644 --- a/lib/igt_psr.c +++ b/lib/igt_psr.c @@ -28,7 +28,7 @@ static bool psr_active(int debugfs_fd, bool check_active) { bool active; - char buf[512]; + char buf[PSR_STATUS_MAX_LEN]; igt_debugfs_simple_read(debugfs_fd, "i915_edp_psr_status", buf, sizeof(buf)); diff --git a/lib/igt_psr.h b/lib/igt_psr.h index b9693822..96f7bedf 100644 --- a/lib/igt_psr.h +++ b/lib/igt_psr.h @@ -28,6 +28,8 @@ #include "igt_core.h" #include "igt_aux.h" +#define PSR_STATUS_MAX_LEN 512 + bool psr_wait_entry(int debugfs_fd); bool psr_wait_exit(int debugfs_fd); bool psr_enable(int debugfs_fd); |