| #ifndef h_print_h |
| #define h_print_h |
| |
| #define CONFIG_SAVE_LOG_TO_MEM 1 |
| |
| #if CONFIG_SAVE_LOG_TO_MEM |
| #define CONFIG_BOOT_LOG_SIZE (16 * 1024) |
| #define BOOT_LOG_MAGIC (0x42474f4c) /* "LOGB" */ |
| /* |
| * log bytes contents are shown as below |
| * 0------------4-------------8----->(top is 16KB) |
| * | log pointer | log_magic | log_content |
| * |
| */ |
| typedef struct boot_log_def { |
| unsigned int buf_pos; |
| unsigned int magic; |
| char buf[0]; |
| } boot_log_t; |
| #endif |
| |
| int err_msg(const char *format, ...); |
| int obm_printf(const char *format, ...); |
| int sprintf(char *str, const char *format, ...); |
| #endif |