From 998288337d87b9fac8ae3a2f06ee97bfa9bfdfa3 Mon Sep 17 00:00:00 2001 From: Lyude Paul Date: Tue, 23 Apr 2019 18:50:56 -0400 Subject: 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 Signed-off-by: Lyude Paul --- tests/drm_import_export.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/drm_import_export.c') 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 -- cgit v1.2.3