From 4bc1edf73534287f9488e3232c25d6d803146e4c Mon Sep 17 00:00:00 2001 From: Jamie Madill Date: Sun, 3 Dec 2017 11:59:17 -0500 Subject: loader: Fix Clang errors/warnings. Fixes: format specifies type 'int' but the argument has type 'DWORD' (aka 'unsigned long') [-Werror,-Wformat] error : expected ')' (issue with __FUNCTION__ and format string) --- loader/loader.c | 2 +- loader/vk_loader_platform.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'loader') diff --git a/loader/loader.c b/loader/loader.c index dd5e21ff..2e756377 100644 --- a/loader/loader.c +++ b/loader/loader.c @@ -514,7 +514,7 @@ bool loaderGetDeviceRegistryEntry(const struct loader_instance *inst, char **reg } else { (void)snprintf(*reg_data + strlen(*reg_data), requiredSize + 2, "%c%s", PATH_SEPARATOR, curr_filename); } - loader_log(inst, VK_DEBUG_REPORT_INFORMATION_BIT_EXT, 0, __FUNCTION__ ": Located json file \"%s\" from PnP registry: %s", curr_filename, value_name); + loader_log(inst, VK_DEBUG_REPORT_INFORMATION_BIT_EXT, 0, "%s: Located json file \"%s\" from PnP registry: %s", __FUNCTION__, curr_filename, value_name); if (data_type == REG_SZ) { break; diff --git a/loader/vk_loader_platform.h b/loader/vk_loader_platform.h index 207e5a48..c04d0371 100644 --- a/loader/vk_loader_platform.h +++ b/loader/vk_loader_platform.h @@ -280,7 +280,7 @@ static loader_platform_dl_handle loader_platform_open_library(const char *lib_pa } static char *loader_platform_open_library_error(const char *libPath) { static char errorMsg[164]; - (void)snprintf(errorMsg, 163, "Failed to open dynamic library \"%s\" with error %d", libPath, GetLastError()); + (void)snprintf(errorMsg, 163, "Failed to open dynamic library \"%s\" with error %lu", libPath, GetLastError()); return errorMsg; } static void loader_platform_close_library(loader_platform_dl_handle library) { FreeLibrary(library); } -- cgit v1.2.3