diff options
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/modules.c | 4 | ||||
-rw-r--r-- | runtime/ruleset.c | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/runtime/modules.c b/runtime/modules.c index f580e58e..8675e414 100644 --- a/runtime/modules.c +++ b/runtime/modules.c @@ -313,8 +313,8 @@ finalize_it: /* get the name of a module */ -uchar -*modGetName(modInfo_t *pThis) +uchar * +modGetName(modInfo_t *pThis) { return((pThis->pszName == NULL) ? (uchar*) "" : pThis->pszName); } diff --git a/runtime/ruleset.c b/runtime/ruleset.c index adbce731..2af44bc4 100644 --- a/runtime/ruleset.c +++ b/runtime/ruleset.c @@ -48,6 +48,7 @@ #include "action.h" #include "rainerscript.h" #include "srUtils.h" +#include "modules.h" #include "dirty.h" /* for main ruleset queue creation */ /* static data */ @@ -217,7 +218,7 @@ static rsRetVal execAct(struct cnfstmt *stmt, batch_t *pBatch, sbool *active) { DEFiRet; -dbgprintf("RRRR: execAct: batch of %d elements, active %p\n", batchNumMsgs(pBatch), active); +dbgprintf("RRRR: execAct [%s]: batch of %d elements, active %p\n", modGetName(stmt->d.act->pMod), batchNumMsgs(pBatch), active); pBatch->active = active; stmt->d.act->submitToActQ(stmt->d.act, pBatch); RETiRet; |