#ifndef _LOG_EXCEPTION_H #define _LOG_EXCEPTION_H #define LOG_EXCEPTION_FS "/dev/hwlog_exception" struct idapheader { char level; char category; char log_type; char sn; }; #define IDAP_LOGTYPE_CMD 1 #define IDAP_LOGTYPE_MSG 2 #define IDAP_LOGTYPE_REG 3 #define IDAP_LOGSN_BAD (-1) #define IDAP_LOGSN_END 0 #define IDAP_LOGSN_CONTINUING 1 #if defined (CONFIG_LOG_EXCEPTION) extern int log_to_exception(char* tag, char* msg); extern int logbuf_to_exception(char category, int level, char log_type, char sn, void *msg, int msglen); #else #define log_to_exception(tag, msg) (-ENOENT) #endif #define log_exception log_to_exception #endif //#ifndef _LOG_EXCEPTION_H