diff options
| author | Jamie Madill <jmadill@chromium.org> | 2017-12-03 11:59:17 -0500 |
|---|---|---|
| committer | Tobin Ehlis <tobine@google.com> | 2017-12-04 13:24:39 -0700 |
| commit | 4bc1edf73534287f9488e3232c25d6d803146e4c (patch) | |
| tree | 41581bc6243bf0885382ed333121dcb18b80dd0d /loader | |
| parent | fb7472bbbcd62e625082a5f24fa802edde98693b (diff) | |
| download | usermoji-4bc1edf73534287f9488e3232c25d6d803146e4c.tar.xz | |
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)
Diffstat (limited to 'loader')
| -rw-r--r-- | loader/loader.c | 2 | ||||
| -rw-r--r-- | loader/vk_loader_platform.h | 2 |
2 files changed, 2 insertions, 2 deletions
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); } |
