diff options
Diffstat (limited to 'src/common/log.h')
| -rw-r--r-- | src/common/log.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/common/log.h b/src/common/log.h index 105db9802..c0f7ca2df 100644 --- a/src/common/log.h +++ b/src/common/log.h | |||
| @@ -126,23 +126,23 @@ void GenericLog(LOGTYPES_LEVELS level, LOGTYPES_TYPE type, const char*file, int | |||
| 126 | //#define INFO_LOG(t,...) do { GENERIC_LOG(LogTypes::t, LogTypes::LINFO, __VA_ARGS__) } while (0) | 126 | //#define INFO_LOG(t,...) do { GENERIC_LOG(LogTypes::t, LogTypes::LINFO, __VA_ARGS__) } while (0) |
| 127 | //#define DEBUG_LOG(t,...) do { GENERIC_LOG(LogTypes::t, LogTypes::LDEBUG, __VA_ARGS__) } while (0) | 127 | //#define DEBUG_LOG(t,...) do { GENERIC_LOG(LogTypes::t, LogTypes::LDEBUG, __VA_ARGS__) } while (0) |
| 128 | 128 | ||
| 129 | #define OS_LOG(t,...) LOG_INFO(Common, __VA_ARGS__) | 129 | //#define OS_LOG(t,...) LOG_INFO(Common, __VA_ARGS__) |
| 130 | #define ERROR_LOG(t,...) LOG_ERROR(Common_Filesystem, __VA_ARGS__) | 130 | //#define ERROR_LOG(t,...) LOG_ERROR(Common_Filesystem, __VA_ARGS__) |
| 131 | #define WARN_LOG(t,...) LOG_WARNING(Kernel_SVC, __VA_ARGS__) | 131 | //#define WARN_LOG(t,...) LOG_WARNING(Kernel_SVC, __VA_ARGS__) |
| 132 | #define NOTICE_LOG(t,...) LOG_INFO(Service, __VA_ARGS__) | 132 | //#define NOTICE_LOG(t,...) LOG_INFO(Service, __VA_ARGS__) |
| 133 | #define INFO_LOG(t,...) LOG_INFO(Service_FS, __VA_ARGS__) | 133 | //#define INFO_LOG(t,...) LOG_INFO(Service_FS, __VA_ARGS__) |
| 134 | #define DEBUG_LOG(t,...) LOG_DEBUG(Common, __VA_ARGS__) | 134 | //#define DEBUG_LOG(t,...) LOG_DEBUG(Common, __VA_ARGS__) |
| 135 | 135 | ||
| 136 | #if MAX_LOGLEVEL >= DEBUG_LEVEL | 136 | #if MAX_LOGLEVEL >= DEBUG_LEVEL |
| 137 | #define _dbg_assert_(_t_, _a_) \ | 137 | #define _dbg_assert_(_t_, _a_) \ |
| 138 | if (!(_a_)) {\ | 138 | if (!(_a_)) {\ |
| 139 | ERROR_LOG(_t_, "Error...\n\n Line: %d\n File: %s\n Time: %s\n\nIgnore and continue?", \ | 139 | LOG_CRITICAL(_t_, "Error...\n\n Line: %d\n File: %s\n Time: %s\n\nIgnore and continue?", \ |
| 140 | __LINE__, __FILE__, __TIME__); \ | 140 | __LINE__, __FILE__, __TIME__); \ |
| 141 | if (!PanicYesNo("*** Assertion (see log)***\n")) {Crash();} \ | 141 | if (!PanicYesNo("*** Assertion (see log)***\n")) {Crash();} \ |
| 142 | } | 142 | } |
| 143 | #define _dbg_assert_msg_(_t_, _a_, ...)\ | 143 | #define _dbg_assert_msg_(_t_, _a_, ...)\ |
| 144 | if (!(_a_)) {\ | 144 | if (!(_a_)) {\ |
| 145 | ERROR_LOG(_t_, __VA_ARGS__); \ | 145 | LOG_CRITICAL(_t_, __VA_ARGS__); \ |
| 146 | if (!PanicYesNo(__VA_ARGS__)) {Crash();} \ | 146 | if (!PanicYesNo(__VA_ARGS__)) {Crash();} \ |
| 147 | } | 147 | } |
| 148 | #define _dbg_update_() Host_UpdateLogDisplay(); | 148 | #define _dbg_update_() Host_UpdateLogDisplay(); |