Signed-off-by: Eric Anholt <e...@anholt.net>
---
 benchmarks/prime_lookup.c | 2 +-
 tests/gem_exec_reuse.c    | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/benchmarks/prime_lookup.c b/benchmarks/prime_lookup.c
index e995b766a173..d6c397299fcb 100644
--- a/benchmarks/prime_lookup.c
+++ b/benchmarks/prime_lookup.c
@@ -143,7 +143,7 @@ static bool allow_files(unsigned min)
                return false;
 
        igt_info("Current file limit is %ld, estimated we need %d\n",
-                rlim.rlim_cur, min);
+                (long)rlim.rlim_cur, min);
 
        if (rlim.rlim_cur > min)
                return true;
diff --git a/tests/gem_exec_reuse.c b/tests/gem_exec_reuse.c
index cdfa9783f5b7..4e3907cf7b52 100644
--- a/tests/gem_exec_reuse.c
+++ b/tests/gem_exec_reuse.c
@@ -122,7 +122,8 @@ static uint64_t max_open_files(void)
        if (getrlimit(RLIMIT_NOFILE, &rlim))
                rlim.rlim_cur = 64 << 10;
 
-       igt_info("Process limit for file descriptors is %lu\n", rlim.rlim_cur);
+       igt_info("Process limit for file descriptors is %lu\n",
+                (long)rlim.rlim_cur);
        return rlim.rlim_cur;
 }
 
-- 
2.14.1

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to