Make sure XDP program has attached at least once.

This commit is contained in:
Christian Deacon
2025-03-10 16:18:15 -04:00
parent d0a62b0a16
commit 0ac80d7452
2 changed files with 17 additions and 4 deletions

View File

@@ -11,7 +11,7 @@
*
* @return void
*/
static void log_msgRaw(int req_lvl, int cur_lvl, int error, const char* log_path, const char* msg, va_list args)
static void log_msg_raw(int req_lvl, int cur_lvl, int error, const char* log_path, const char* msg, va_list args)
{
if (cur_lvl < req_lvl)
{
@@ -86,7 +86,7 @@ static void log_msgRaw(int req_lvl, int cur_lvl, int error, const char* log_path
}
/**
* Prints a log message using log_msgRaw().
* Prints a log message using log_msg_raw().
*
* @param cfg A pointer to the config structure.
* @param req_lvl The required level for this message.
@@ -100,7 +100,7 @@ void log_msg(config__t* cfg, int req_lvl, int error, const char* msg, ...)
va_list args;
va_start(args, msg);
log_msgRaw(req_lvl, cfg->verbose, error, (const char*)cfg->log_file, msg, args);
log_msg_raw(req_lvl, cfg->verbose, error, (const char*)cfg->log_file, msg, args);
va_end(args);
}