Skip to content

Commit e116563

Browse files
committed
Fix GPU test pritnf formats
1 parent 3df987b commit e116563

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/unit/test_gpu.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
#include "sentry_scope.h"
33
#include "sentry_testsupport.h"
44

5+
#include <inttypes.h>
6+
57
SENTRY_TEST(gpu_info_basic)
68
{
79
sentry_gpu_list_t *gpu_list = sentry__get_gpu_info();
@@ -366,7 +368,7 @@ SENTRY_TEST(gpu_info_hybrid_setup_simulation)
366368
printf(" Driver: %s\n", gpu_info->driver_version);
367369
}
368370
if (gpu_info->memory_size > 0) {
369-
printf(" Memory: %zu bytes\n", gpu_info->memory_size);
371+
printf(" Memory: %" PRIu64 " bytes\n", gpu_info->memory_size);
370372
}
371373
} else {
372374
has_other = true;

0 commit comments

Comments
 (0)