소스 검색

loader: Add missing printf argument

Lioncash 11 년 전
부모
커밋
0c4685ca12
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/core/loader/loader.cpp

+ 1 - 1
src/core/loader/loader.cpp

@@ -150,7 +150,7 @@ ResultStatus LoadFile(const std::string& filename) {
     // IdentifyFile could know identify file type...
     case FileType::Unknown:
     {
-        LOG_CRITICAL(Loader, "File %s is of unknown type.");
+        LOG_CRITICAL(Loader, "File %s is of unknown type.", filename.c_str());
         return ResultStatus::ErrorInvalidFormat;
     }
     }