|
WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
|

宏定义 | |
| #define | LOS_EMG_LEVEL 0 |
| #define | LOS_COMMOM_LEVEL (LOS_EMG_LEVEL + 1) |
| #define | LOS_ERR_LEVEL (LOS_COMMOM_LEVEL + 1) |
| #define | LOS_WARN_LEVEL (LOS_ERR_LEVEL + 1) |
| #define | LOS_INFO_LEVEL (LOS_WARN_LEVEL + 1) |
| #define | LOS_DEBUG_LEVEL (LOS_INFO_LEVEL + 1) |
| #define | PRINT_LEVEL LOS_ERR_LEVEL |
| #define | PRINT_DEBUG(fmt, ...) |
| Format and print debug log. | |
| #define | PRINT_INFO(fmt, ...) |
| Format and print information log. | |
| #define | PRINT_WARN(fmt, ...) |
| Format and print warning log. | |
| #define | PRINT_ERR(fmt, ...) |
| Format and print error log. | |
| #define | PRINTK(fmt, ...) dprintf(fmt, ##__VA_ARGS__) |
| Format and print common log. | |
| #define | PRINT_EMG(fmt, ...) |
| Format and print emergency log. | |
| #define | PRINT_RELEASE(fmt, ...) dprintf(fmt, ##__VA_ARGS__) |
| Format and print log. | |
函数 | |
| void | LOS_Printf (const CHAR *fmt,...) |
| Format and print data. | |
| #define LOS_COMMOM_LEVEL (LOS_EMG_LEVEL + 1) |
log print level definition, LOS_COMMOM_LEVEL is set to 1, it means the log is common.
| #define LOS_DEBUG_LEVEL (LOS_INFO_LEVEL + 1) |
log print level definition, LOS_DEBUG_LEVEL is set to 5, it means it is a debug log.
| #define LOS_EMG_LEVEL 0 |
log print level definition, LOS_EMG_LEVEL is set to 0, it means the log is emergency.
| #define LOS_ERR_LEVEL (LOS_COMMOM_LEVEL + 1) |
log print level definition, LOS_ERR_LEVEL is set to 2, it means it is a error log.
| #define LOS_INFO_LEVEL (LOS_WARN_LEVEL + 1) |
log print level definition, LOS_INFO_LEVEL is set to 4, it means the log is an information.
| #define LOS_WARN_LEVEL (LOS_ERR_LEVEL + 1) |
log print level definition, LOS_WARN_LEVEL is set to 3, it means it is a warning log.
| #define PRINT_DEBUG | ( | fmt, | |
| ... | |||
| ) |
Format and print debug log.
| fmt | [IN] Type: const CHAR *. It controls the output format as in C printf. |
| args | [IN] It point to the variable parameters. |
| None. |
| #define PRINT_EMG | ( | fmt, | |
| ... | |||
| ) |
Format and print emergency log.
| fmt | [IN] Type: const CHAR *. It controls the output format as in C printf. |
| args | [IN] It point to the variable parameters. |
| None. |
| #define PRINT_ERR | ( | fmt, | |
| ... | |||
| ) |
Format and print error log.
| fmt | [IN] Type: const CHAR *. It controls the output format as in C printf. |
| args | [IN] It point to the variable parameters. |
| None. |
| #define PRINT_INFO | ( | fmt, | |
| ... | |||
| ) |
Format and print information log.
| fmt | [IN] Type: const CHAR *. It controls the output format as in C printf. |
| args | [IN] It point to the variable parameters. |
| None. |
| #define PRINT_LEVEL LOS_ERR_LEVEL |
The default log print level. PRINT_LEVEL is set to debug log level if LOSCFG_SHELL_LK is defined, otherwise PRINT_LEVEL is set to error log level. The default log print level means only print the log which its level value is lower than or equal to the PRINT_LEVEL.
| #define PRINT_RELEASE | ( | fmt, | |
| ... | |||
| ) | dprintf(fmt, ##__VA_ARGS__) |
Format and print log.
| fmt | [IN] Type: const CHAR *. It controls the output format as in C printf. |
| args | [IN] It point to the variable parameters. |
| None. |
| #define PRINT_WARN | ( | fmt, | |
| ... | |||
| ) |
Format and print warning log.
| fmt | [IN] Type: const CHAR *. It controls the output format as in C printf. |
| args | [IN] It point to the variable parameters. |
| None. |
| #define PRINTK | ( | fmt, | |
| ... | |||
| ) | dprintf(fmt, ##__VA_ARGS__) |
Format and print common log.
| fmt | [IN] Type: const CHAR *. It controls the output format as in C printf. |
| args | [IN] It point to the variable parameters. |
| None. |
|
extern |
Format and print data.
| fmt | [IN] Type char*. It controls the output format as in C printf. |
| None. |