From 4175bc5c334c3fcd0c1bd4e231f873e79a7b5d3a Mon Sep 17 00:00:00 2001 From: Bill Williams Date: Tue, 31 Jan 2017 11:40:35 -0800 Subject: [PATCH] add __cimplog_err function to decode error --- src/cimplog.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/cimplog.h b/src/cimplog.h index 6f9bc1a..18b8c64 100644 --- a/src/cimplog.h +++ b/src/cimplog.h @@ -36,4 +36,14 @@ */ void __cimplog(const char *module, int level, const char *msg, ...); +/** +* @brief handle log message based on log level and error code +* +* @param module string identifying library/module +* @param level of log is info,debug,error +* @param error code (usually errno) +* @param msg message +*/ +void __cimplog_err (const char *module, int level, int err_code, const char *msg, ...); + #endif