#ifndef	__dr_log_h__
#define	__dr_log_h__

/* Fair warning time: Debugging infra is not straightforward. These macros can
 * be called from the TL side too. Using these macros inside the logging
 * infra itself is like hacking your own leg with a really blunt axe. NEVER EVER
 * EVER put these calls in the logging call path itself. Recursive calls
 * to log_msg() are not fun.
 */

#define	tlApiTimaDriverLogDbgMsg(...)	log_msg(dbg_log_info, __VA_ARGS__)
#define	tlApiTimaDriverLogSecMsg(...)	do { \
		dashboard_update(__VA_ARGS__); \
		snprintf(g_log_msg, LOG_MSG_SIZE - 1, dashboard_lookup_msg_type(__VA_ARGS__)); \
		g_log_msg[LOG_MSG_SIZE - 1] = '\0'; \
		log_msg(sec_log_info, g_log_msg); \
	} while(0);

#include "debug_log.h"
#include "sec_log.h"

#endif
