diff options
| author | 2014-12-05 23:53:49 -0200 | |
|---|---|---|
| committer | 2014-12-13 02:08:02 -0200 | |
| commit | 0600e2d8b5b30bd68c8b19cb1f2051e096e7caa9 (patch) | |
| tree | 40fee084c551bfb497e68181447298f862ea68ca /src/core/hle/hle.cpp | |
| parent | Implement text path trimming for shorter paths. (diff) | |
| download | yuzu-0600e2d8b5b30bd68c8b19cb1f2051e096e7caa9.tar.gz yuzu-0600e2d8b5b30bd68c8b19cb1f2051e096e7caa9.tar.xz yuzu-0600e2d8b5b30bd68c8b19cb1f2051e096e7caa9.zip | |
Convert old logging calls to new logging macros
Diffstat (limited to 'src/core/hle/hle.cpp')
| -rw-r--r-- | src/core/hle/hle.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/core/hle/hle.cpp b/src/core/hle/hle.cpp index b8ac186f6..3f73b5538 100644 --- a/src/core/hle/hle.cpp +++ b/src/core/hle/hle.cpp | |||
| @@ -20,7 +20,7 @@ bool g_reschedule = false; ///< If true, immediately reschedules the CPU to a n | |||
| 20 | const FunctionDef* GetSVCInfo(u32 opcode) { | 20 | const FunctionDef* GetSVCInfo(u32 opcode) { |
| 21 | u32 func_num = opcode & 0xFFFFFF; // 8 bits | 21 | u32 func_num = opcode & 0xFFFFFF; // 8 bits |
| 22 | if (func_num > 0xFF) { | 22 | if (func_num > 0xFF) { |
| 23 | ERROR_LOG(HLE,"unknown svc=0x%02X", func_num); | 23 | LOG_ERROR(Kernel_SVC,"unknown svc=0x%02X", func_num); |
| 24 | return nullptr; | 24 | return nullptr; |
| 25 | } | 25 | } |
| 26 | return &g_module_db[0].func_table[func_num]; | 26 | return &g_module_db[0].func_table[func_num]; |
| @@ -35,14 +35,12 @@ void CallSVC(u32 opcode) { | |||
| 35 | if (info->func) { | 35 | if (info->func) { |
| 36 | info->func(); | 36 | info->func(); |
| 37 | } else { | 37 | } else { |
| 38 | ERROR_LOG(HLE, "unimplemented SVC function %s(..)", info->name.c_str()); | 38 | LOG_ERROR(Kernel_SVC, "unimplemented SVC function %s(..)", info->name.c_str()); |
| 39 | } | 39 | } |
| 40 | } | 40 | } |
| 41 | 41 | ||
| 42 | void Reschedule(const char *reason) { | 42 | void Reschedule(const char *reason) { |
| 43 | #ifdef _DEBUG | 43 | _dbg_assert_msg_(Kernel, reason != 0 && strlen(reason) < 256, "Reschedule: Invalid or too long reason."); |
| 44 | _dbg_assert_msg_(HLE, reason != 0 && strlen(reason) < 256, "Reschedule: Invalid or too long reason."); | ||
| 45 | #endif | ||
| 46 | Core::g_app_core->PrepareReschedule(); | 44 | Core::g_app_core->PrepareReschedule(); |
| 47 | g_reschedule = true; | 45 | g_reschedule = true; |
| 48 | } | 46 | } |
| @@ -61,7 +59,7 @@ void Init() { | |||
| 61 | 59 | ||
| 62 | RegisterAllModules(); | 60 | RegisterAllModules(); |
| 63 | 61 | ||
| 64 | NOTICE_LOG(HLE, "initialized OK"); | 62 | LOG_DEBUG(Kernel, "initialized OK"); |
| 65 | } | 63 | } |
| 66 | 64 | ||
| 67 | void Shutdown() { | 65 | void Shutdown() { |
| @@ -69,7 +67,7 @@ void Shutdown() { | |||
| 69 | 67 | ||
| 70 | g_module_db.clear(); | 68 | g_module_db.clear(); |
| 71 | 69 | ||
| 72 | NOTICE_LOG(HLE, "shutdown OK"); | 70 | LOG_DEBUG(Kernel, "shutdown OK"); |
| 73 | } | 71 | } |
| 74 | 72 | ||
| 75 | } // namespace | 73 | } // namespace |