From 6888aaaee757dcb3f89165e9b8d2ac72be5780bd Mon Sep 17 00:00:00 2001 From: Reece Date: Mon, 8 Nov 2021 01:15:37 +0000 Subject: [PATCH] [*] Fix bad formats --- Source/IO/FS/FS.NT.cpp | 2 +- Source/IO/FS/FileStream.NT.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/IO/FS/FS.NT.cpp b/Source/IO/FS/FS.NT.cpp index 9750c43a..04e39c9e 100644 --- a/Source/IO/FS/FS.NT.cpp +++ b/Source/IO/FS/FS.NT.cpp @@ -133,7 +133,7 @@ namespace Aurora::IO::FS if (!::ReadFile(fileHandle, &buffer[offset], blockSize, &read, NULL)) { - LogWarn("ReadFile IO Error: 0x%x {}", GetLastError(), path); + LogWarn("ReadFile IO Error: 0x{:x} {}", GetLastError(), path); SysPushErrorIO(); goto out; } diff --git a/Source/IO/FS/FileStream.NT.cpp b/Source/IO/FS/FileStream.NT.cpp index 92b75840..f693ad3c 100644 --- a/Source/IO/FS/FileStream.NT.cpp +++ b/Source/IO/FS/FileStream.NT.cpp @@ -39,7 +39,7 @@ namespace Aurora::IO::FS if (SetFilePointerEx(handle_, distance, &pos, FILE_CURRENT) == INVALID_SET_FILE_POINTER) { - LogWarn("SetFilePointerEx IO Error: 0x%x, {}", GetLastError(), path_); + LogWarn("SetFilePointerEx IO Error: 0x{:x}, {}", GetLastError(), path_); SysPushErrorIO(); return 0; } @@ -62,7 +62,7 @@ namespace Aurora::IO::FS if (SetFilePointerEx(handle_, distance, &pos, FILE_CURRENT) == INVALID_SET_FILE_POINTER) { - LogWarn("SetFilePointerEx IO Error: 0x%x, {}", GetLastError(), path_); + LogWarn("SetFilePointerEx IO Error: 0x{:x}, {}", GetLastError(), path_); SysPushErrorIO(); return false; }