Skip to content

Commit f2389e2

Browse files
Use correct format specifier for size_t
1 parent b54033f commit f2389e2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

loader/loader.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ VkResult normalize_path(const struct loader_instance *inst, char **passed_in_pat
435435
if (actual_len == 0) {
436436
size_t last_error = (size_t)GetLastError();
437437
loader_log(inst, VULKAN_LOADER_DEBUG_BIT, 0,
438-
"normalize_path: Call to GetFullPathNameA() failed with error code %llu when given the path %s", last_error,
438+
"normalize_path: Call to GetFullPathNameA() failed with error code %zu when given the path %s", last_error,
439439
*passed_in_path);
440440
res = VK_ERROR_INITIALIZATION_FAILED;
441441
goto out;
@@ -456,15 +456,15 @@ VkResult normalize_path(const struct loader_instance *inst, char **passed_in_pat
456456
if (actual_len == 0) {
457457
size_t last_error = (size_t)GetLastError();
458458
loader_log(inst, VULKAN_LOADER_DEBUG_BIT, 0,
459-
"normalize_path: Call to GetFullPathNameA() failed with error code %llu when given the path %s", last_error,
459+
"normalize_path: Call to GetFullPathNameA() failed with error code %zu when given the path %s", last_error,
460460
*passed_in_path);
461461
res = VK_ERROR_INITIALIZATION_FAILED;
462462
goto out;
463463
// actual_len doesn't include null terminator
464464
} else if (actual_len + 1 != path_len) {
465465
loader_log(inst, VULKAN_LOADER_DEBUG_BIT, 0,
466466
"normalize_path: Call to GetFullPathNameA() with too small of a buffer when given the path %s after the "
467-
"initial call to GetFullPathNameA() failed for the same reason. Buffer size is %llu, actual size is %llu",
467+
"initial call to GetFullPathNameA() failed for the same reason. Buffer size is %zu, actual size is %zu",
468468
*passed_in_path, (size_t)path_len, (size_t)actual_len);
469469
res = VK_ERROR_INITIALIZATION_FAILED;
470470
goto out;

0 commit comments

Comments
 (0)