Merge pull request #2027 from HubertXie/master

减ulog Flash占用
This commit is contained in:
Bernard Xiong 2018-12-04 18:16:18 +08:00 committed by GitHub
commit cd86208e5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -45,6 +45,7 @@ void ulog_deinit(void);
#define LOG_I(...) ulog_i(LOG_TAG, __VA_ARGS__) #define LOG_I(...) ulog_i(LOG_TAG, __VA_ARGS__)
#define LOG_D(...) ulog_d(LOG_TAG, __VA_ARGS__) #define LOG_D(...) ulog_d(LOG_TAG, __VA_ARGS__)
#define LOG_RAW(...) ulog_raw(__VA_ARGS__) #define LOG_RAW(...) ulog_raw(__VA_ARGS__)
#define LOG_HEX(name, width, buf, size) ulog_hex(name, width, buf, size)
/* /*
* backend register and unregister * backend register and unregister

View File

@ -94,6 +94,12 @@ extern "C" {
#define ulog_e(TAG, ...) #define ulog_e(TAG, ...)
#endif /* (LOG_LVL >= LOG_LVL_ERROR) && (ULOG_OUTPUT_LVL >= LOG_LVL_ERROR) */ #endif /* (LOG_LVL >= LOG_LVL_ERROR) && (ULOG_OUTPUT_LVL >= LOG_LVL_ERROR) */
#if (LOG_LVL >= LOG_LVL_DBG) && (ULOG_OUTPUT_LVL >= LOG_LVL_DBG)
#define ulog_hex(TAG, width, buf, size) ulog_hexdump(TAG, width, buf, size)
#else
#define ulog_hex(TAG, width, buf, size)
#endif /* (LOG_LVL >= LOG_LVL_DBG) && (ULOG_OUTPUT_LVL >= LOG_LVL_DBG) */
/* assert for developer. */ /* assert for developer. */
#ifdef ULOG_ASSERT_ENABLE #ifdef ULOG_ASSERT_ENABLE
#define ULOG_ASSERT(EXPR) \ #define ULOG_ASSERT(EXPR) \
@ -132,6 +138,7 @@ extern "C" {
#define log_d LOG_D #define log_d LOG_D
#define log_v LOG_D #define log_v LOG_D
#define log_raw LOG_RAW #define log_raw LOG_RAW
#define log_hex LOG_HEX
#define ELOG_LVL_ASSERT LOG_LVL_ASSERT #define ELOG_LVL_ASSERT LOG_LVL_ASSERT
#define ELOG_LVL_ERROR LOG_LVL_ERROR #define ELOG_LVL_ERROR LOG_LVL_ERROR
#define ELOG_LVL_WARN LOG_LVL_WARNING #define ELOG_LVL_WARN LOG_LVL_WARNING