diff options
| author | 2014-12-12 23:20:01 -0500 | |
|---|---|---|
| committer | 2014-12-12 23:20:01 -0500 | |
| commit | af1cd769e7b407af71496e788e218add31f8b2b0 (patch) | |
| tree | 1e3fd71256c04a15970b09abd3f7280f8b1ff678 /src/core/hle/hle.cpp | |
| parent | Merge pull request #267 from bunnei/apt-shared-font (diff) | |
| parent | Remove old logging system (diff) | |
| download | yuzu-af1cd769e7b407af71496e788e218add31f8b2b0.tar.gz yuzu-af1cd769e7b407af71496e788e218add31f8b2b0.tar.xz yuzu-af1cd769e7b407af71496e788e218add31f8b2b0.zip | |
Merge pull request #258 from yuriks/log-ng
New logging system
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 |