[PATCH i-g-t 2/2] tests/intel/xe_eudebug_online: Fix 32b compilation warnings/errors
Dominik Grzegorzek
dominik.grzegorzek at intel.com
Mon Jan 20 13:13:38 UTC 2025
Fix metadata allocation so it is properly sized on 32b and
correct all debug prints which were causing compilation warnings.
Signed-off-by: Dominik Grzegorzek <dominik.grzegorzek at intel.com>
---
tests/intel/xe_eudebug_online.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/tests/intel/xe_eudebug_online.c b/tests/intel/xe_eudebug_online.c
index f532387af..41a01c02f 100644
--- a/tests/intel/xe_eudebug_online.c
+++ b/tests/intel/xe_eudebug_online.c
@@ -569,7 +569,7 @@ static void get_aips_offset_table(struct online_debug_data *data, int threads)
igt_debug("AIPs offset table:\n");
for (int i = 0; i < threads; i++)
- igt_debug("%lx\n", data->aips_offset_table[i]);
+ igt_debug("%" PRIx64 "\n", data->aips_offset_table[i]);
}
static int get_stepped_threads_count(struct online_debug_data *data, int threads)
@@ -1063,8 +1063,8 @@ static void run_online_client(struct xe_eudebug_client *c)
uint32_t *ptr;
int fd, vm_flags;
- metadata[0] = calloc(2, sizeof(*metadata));
- metadata[1] = calloc(2, sizeof(*metadata));
+ metadata[0] = calloc(2, sizeof(**metadata));
+ metadata[1] = calloc(2, sizeof(**metadata));
igt_assert(metadata[0]);
igt_assert(metadata[1]);
@@ -2328,11 +2328,11 @@ static void test_many_sessions_on_tiles(int fd, bool multi_tile)
if (multi_tile)
igt_assert_f(diff < WORKLOAD_DELAY_US,
- "Expected to execute workloads concurrently. Actual delay: %lu ms\n",
+ "Expected to execute workloads concurrently. Actual delay: %" PRIu64 " ms\n",
diff);
else
igt_assert_f(diff >= WORKLOAD_DELAY_US,
- "Expected a serialization of workloads. Actual delay: %lu ms\n",
+ "Expected a serialization of workloads. Actual delay: %" PRIu64 " ms\n",
diff);
}
--
2.34.1
More information about the igt-dev
mailing list