diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-08-07 19:01:23 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-08-12 14:46:40 +0200 |
commit | 370c9897230b4d4973d0a2ab641901081108d97b (patch) | |
tree | 4c8294a71fe9d2232335c4b66d19b0e4efae18ce /lib/igt_core.h | |
parent | 24617ef82a4c58766675b3f1e4c194ca37fe9744 (diff) |
lib/core: Add optional reason for timeout failure
"Timed out" isn't a terribly informative message, allow users to set
something more informative. Inspired by a request from Jesse.
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Diffstat (limited to 'lib/igt_core.h')
-rw-r--r-- | lib/igt_core.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/igt_core.h b/lib/igt_core.h index 83eac02b..1a324ee8 100644 --- a/lib/igt_core.h +++ b/lib/igt_core.h @@ -732,7 +732,8 @@ extern enum igt_log_level igt_log_level; } while (0) -void igt_set_timeout(unsigned int seconds); +void igt_set_timeout(unsigned int seconds, + const char *op); FILE *__igt_fopen_data(const char* igt_srcdir, const char* igt_datadir, const char* filename); |