diff options
author | Lyude Paul <lyude@redhat.com> | 2019-04-23 18:50:56 -0400 |
---|---|---|
committer | Lyude Paul <lyude@redhat.com> | 2019-05-07 17:37:56 -0400 |
commit | 998288337d87b9fac8ae3a2f06ee97bfa9bfdfa3 (patch) | |
tree | 01cf7f5109a92232da85b3ff50343b3106c31dc6 /tests/drm_import_export.c | |
parent | 71a46ea98a946437993b16b1cb2433f85d19a94e (diff) |
Use gettid() wrapper everywhere
Currently we have multiple different parts of IGT that define their own
wrapper around the gettid() syscall (or just call it directly with no
wrapper).
Additionally, add the appropriate #includes for igt_aux.h to make sure
syscall() is available.
Reviewed-by: Petri Latvala <petri.latvala@intel.com>
Signed-off-by: Lyude Paul <lyude@redhat.com>
Diffstat (limited to 'tests/drm_import_export.c')
-rw-r--r-- | tests/drm_import_export.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/drm_import_export.c b/tests/drm_import_export.c index 4bc7b7d4..e1b0abae 100644 --- a/tests/drm_import_export.c +++ b/tests/drm_import_export.c @@ -120,7 +120,7 @@ static void start_test(void) static void * test_thread(void * par) { #ifdef __linux__ - igt_debug("start %ld\n", syscall(SYS_gettid)); + igt_debug("start %ld\n", gettid()); #else igt_debug("start %ld\n", (long) pthread_self()); #endif |