log FEATURE log macros to allow empty variable arguments
With this the SRP_LOG_xxxMSG macros aren't needed anymore.
see:
@@ -1796,7 +1796,7 @@ typedef void (*srp_cleanup_cb_t)(sr_session_ctx_t *session, void *private_data);
* @param[in] format Message format.
* @param[in] ... Format arguments.
*/
-#define SRP_LOG_ERR(format, ...) srp_log(SR_LL_ERR, format, __VA_ARGS__)
+#define SRP_LOG_ERR(...) srp_log(SR_LL_ERR, __VA_ARGS__)
/**
* @brief Log a plugin warning message with format arguments.
@@ -1804,7 +1804,7 @@ typedef void (*srp_cleanup_cb_t)(sr_session_ctx_t *session, void *private_data);
* @param[in] format Message format.
* @param[in] ... Format arguments.
*/
-#define SRP_LOG_WRN(format, ...) srp_log(SR_LL_WRN, format, __VA_ARGS__)
+#define SRP_LOG_WRN(...) srp_log(SR_LL_WRN, __VA_ARGS__)
/**
* @brief Log a plugin info message with format arguments.
@@ -1812,7 +1812,7 @@ typedef void (*srp_cleanup_cb_t)(sr_session_ctx_t *session, void *private_data);
* @param[in] format Message format.
* @param[in] ... Format arguments.
*/
-#define SRP_LOG_INF(format, ...) srp_log(SR_LL_INF, format, __VA_ARGS__)
+#define SRP_LOG_INF(...) srp_log(SR_LL_INF, __VA_ARGS__)
/**
* @brief Log a plugin debug message with format arguments.
@@ -1820,7 +1820,7 @@ typedef void (*srp_cleanup_cb_t)(sr_session_ctx_t *session, void *private_data);
* @param[in] format Message format.
* @param[in] ... Format arguments.
*/
-#define SRP_LOG_DBG(format, ...) srp_log(SR_LL_DBG, format, __VA_ARGS__)
+#define SRP_LOG_DBG(...) srp_log(SR_LL_DBG, __VA_ARGS__)
/**
* @brief Log a simple plugin error message.
