31#ifndef LOS_BLACKBOX_COMMON_H
32#define LOS_BLACKBOX_COMMON_H
44#define ERROR_INFO_HEADER_FORMAT "#### error info ####\nevent: %s\nmodule: %s\nerrorDesc: %s\n"
45#define ERROR_INFO_MAX_LEN 768
46#define Min(a, b) (((a) > (b)) ? (b) : (a))
47#define BBOX_PRINT_ERR(format, ...) PRINTK("bbox: func: %s, line: %d, Err: " \
48 format, __func__, __LINE__, ##__VA_ARGS__)
49#define BBOX_PRINT_INFO(format, ...) PRINTK("bbox: Info: " format, ##__VA_ARGS__)
51int FullWriteFile(
const char *filePath,
const char *buf,
size_t bufSize,
int isAppend);
bool IsLogPartReady(void)
int FullWriteFile(const char *filePath, const char *buf, size_t bufSize, int isAppend)
int SaveBasicErrorInfo(const char *filePath, const struct ErrorInfo *info)
int CreateLogDir(const char *dirPath)