|
|
@@ -27,12 +27,11 @@ OTHER DEALINGS IN THE SOFTWARE.
|
|
|
#pragma once
|
|
|
|
|
|
#if defined(CROWN_DEBUG)
|
|
|
- #include "device.h"
|
|
|
#include "console_server.h"
|
|
|
- #define CE_LOGI(msg, ...) crown::device()->console()->log_to_all(crown::LogSeverity::INFO, msg, ##__VA_ARGS__)
|
|
|
- #define CE_LOGD(msg, ...) crown::device()->console()->log_to_all(crown::LogSeverity::DEBUG, msg, ##__VA_ARGS__)
|
|
|
- #define CE_LOGE(msg, ...) crown::device()->console()->log_to_all(crown::LogSeverity::ERROR, msg, ##__VA_ARGS__)
|
|
|
- #define CE_LOGW(msg, ...) crown::device()->console()->log_to_all(crown::LogSeverity::WARN, msg, ##__VA_ARGS__)
|
|
|
+ #define CE_LOGI(msg, ...) crown::console_server_globals::console().log_to_all(crown::LogSeverity::INFO, msg, ##__VA_ARGS__)
|
|
|
+ #define CE_LOGD(msg, ...) crown::console_server_globals::console().log_to_all(crown::LogSeverity::DEBUG, msg, ##__VA_ARGS__)
|
|
|
+ #define CE_LOGE(msg, ...) crown::console_server_globals::console().log_to_all(crown::LogSeverity::ERROR, msg, ##__VA_ARGS__)
|
|
|
+ #define CE_LOGW(msg, ...) crown::console_server_globals::console().log_to_all(crown::LogSeverity::WARN, msg, ##__VA_ARGS__)
|
|
|
#else
|
|
|
#define CE_LOGI(msg, ...) ((void)0)
|
|
|
#define CE_LOGD(msg, ...) ((void)0)
|