openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/rsyslog/8.1903.0-r0/rsyslog-8.1903.0/runtime/modules.c
static void modPrintList(void)
{
    modInfo_t* pMod;

    pMod = GetNxt(NULL);
    while (pMod != NULL)
    {
        dbgprintf("Loaded Module: Name='%s', IFVersion=%d, ",
                  (char*)modGetName(pMod), pMod->iIFVers);
        dbgprintf("type=");
        switch (pMod->eType)
        {
            case eMOD_OUT:
                dbgprintf("output");
                break;
            case eMOD_IN:
                dbgprintf("input");
                break;
            case eMOD_LIB:
                dbgprintf("library");
                break;
            case eMOD_PARSER:
                dbgprintf("parser");
                break;
            case eMOD_STRGEN:
                dbgprintf("strgen");
                break;
            case eMOD_FUNCTION:
                dbgprintf("function");
                break;
            case eMOD_ANY: /* this is mostly to keep the compiler happy! */
                DBGPRINTF("PROGRAM ERROR: eMOD_ANY set as module type\n");
                assert(0);
                break;
        }
        dbgprintf(" module.\n");
        dbgprintf("Entry points:\n");
        dbgprintf("\tqueryEtryPt:        0x%lx\n",
                  (unsigned long)pMod->modQueryEtryPt);
        dbgprintf("\tdbgPrintInstInfo:   0x%lx\n",
                  (unsigned long)pMod->dbgPrintInstInfo);
        dbgprintf("\tfreeInstance:       0x%lx\n",
                  (unsigned long)pMod->freeInstance);
        dbgprintf("\tbeginCnfLoad:       0x%lx\n",
                  (unsigned long)pMod->beginCnfLoad);
        dbgprintf("\tSetModCnf:          0x%lx\n",
                  (unsigned long)pMod->setModCnf);
        dbgprintf("\tcheckCnf:           0x%lx\n",
                  (unsigned long)pMod->checkCnf);
        dbgprintf("\tactivateCnfPrePrivDrop: 0x%lx\n",
                  (unsigned long)pMod->activateCnfPrePrivDrop);
        dbgprintf("\tactivateCnf:        0x%lx\n",
                  (unsigned long)pMod->activateCnf);
        dbgprintf("\tfreeCnf:            0x%lx\n",
                  (unsigned long)pMod->freeCnf);
        switch (pMod->eType)
        {
            case eMOD_OUT:
                dbgprintf("Output Module Entry Points:\n");
                dbgprintf("\tdoAction:           %p\n", pMod->mod.om.doAction);
                dbgprintf("\tparseSelectorAct:   %p\n",
                          pMod->mod.om.parseSelectorAct);
                dbgprintf("\tnewActInst:         %p\n",
                          (pMod->mod.om.newActInst == dummynewActInst)
                              ? NULL
                              : pMod->mod.om.newActInst);
                dbgprintf("\ttryResume:          %p\n", pMod->tryResume);
                dbgprintf("\tdoHUP:              %p\n", pMod->doHUP);
                dbgprintf(
                    "\tBeginTransaction:   %p\n",
                    ((pMod->mod.om.beginTransaction == dummyBeginTransaction)
                         ? NULL
                         : pMod->mod.om.beginTransaction));
                dbgprintf("\tEndTransaction:     %p\n",
                          ((pMod->mod.om.endTransaction == dummyEndTransaction)
                               ? NULL
                               : pMod->mod.om.endTransaction));
                break;
            case eMOD_IN:
                dbgprintf("Input Module Entry Points\n");
                dbgprintf("\trunInput:           0x%lx\n",
                          (unsigned long)pMod->mod.im.runInput);
                dbgprintf("\twillRun:            0x%lx\n",
                          (unsigned long)pMod->mod.im.willRun);
                dbgprintf("\tafterRun:           0x%lx\n",
                          (unsigned long)pMod->mod.im.afterRun);
                break;
            case eMOD_LIB:
                break;
            case eMOD_PARSER:
                dbgprintf("Parser Module Entry Points\n");
                dbgprintf("\tparse:              0x%lx\n",
                          (unsigned long)pMod->mod.pm.parse);
                break;
            case eMOD_STRGEN:
                dbgprintf("Strgen Module Entry Points\n");
                dbgprintf("\tstrgen:            0x%lx\n",
                          (unsigned long)pMod->mod.sm.strgen);
                break;
            case eMOD_FUNCTION:
                dbgprintf("Function Module Entry Points\n");
                dbgprintf("\tgetFunctArray:     0x%lx\n",
                          (unsigned long)pMod->mod.fm.getFunctArray);
                break;
            case eMOD_ANY: /* this is mostly to keep the compiler happy! */
                break;
        }
        dbgprintf("\n");
        pMod = GetNxt(pMod); /* done, go next */
    }
}
/* Print loaded modules. This is more or less a
 * debug or test aid, but anyhow I think it's worth it...
 * This only works if the dbgprintf() subsystem is initialized.
 * TODO: update for new input modules!
 */
Print loaded modules. This is more or less a
debug or test aid, but anyhow I think it's worth it
This only works if the dbgprintf() subsystem is initialized.
TODO: update for new input modules!
Print loaded modules . This is more or less a debug or test aid but anyhow I think it ' s worth it This only works if the dbgprintf () subsystem is initialized . TODO : update for new input modules!
static void modPrintList(void)
{
    modInfo_t* pMod;
    pMod = GetNxt(NULL);
    while (pMod != NULL)
    {
        dbgprintf("Loaded Module: Name='%s', IFVersion=%d, ",
                  (char*)modGetName(pMod), pMod->iIFVers);
        dbgprintf("type=");
        switch (pMod->eType)
        {
            case eMOD_OUT:
                dbgprintf("output");
                break;
            case eMOD_IN:
                dbgprintf("input");
                break;
            case eMOD_LIB:
                dbgprintf("library");
                break;
            case eMOD_PARSER:
                dbgprintf("parser");
                break;
            case eMOD_STRGEN:
                dbgprintf("strgen");
                break;
            case eMOD_FUNCTION:
                dbgprintf("function");
                break;
            case eMOD_ANY: 
                DBGPRINTF("PROGRAM ERROR: eMOD_ANY set as module type\n");
                assert(0);
                break;
        }
        dbgprintf(" module.\n");
        dbgprintf("Entry points:\n");
        dbgprintf("\tqueryEtryPt:        0x%lx\n",
                  (unsigned long)pMod->modQueryEtryPt);
        dbgprintf("\tdbgPrintInstInfo:   0x%lx\n",
                  (unsigned long)pMod->dbgPrintInstInfo);
        dbgprintf("\tfreeInstance:       0x%lx\n",
                  (unsigned long)pMod->freeInstance);
        dbgprintf("\tbeginCnfLoad:       0x%lx\n",
                  (unsigned long)pMod->beginCnfLoad);
        dbgprintf("\tSetModCnf:          0x%lx\n",
                  (unsigned long)pMod->setModCnf);
        dbgprintf("\tcheckCnf:           0x%lx\n",
                  (unsigned long)pMod->checkCnf);
        dbgprintf("\tactivateCnfPrePrivDrop: 0x%lx\n",
                  (unsigned long)pMod->activateCnfPrePrivDrop);
        dbgprintf("\tactivateCnf:        0x%lx\n",
                  (unsigned long)pMod->activateCnf);
        dbgprintf("\tfreeCnf:            0x%lx\n",
                  (unsigned long)pMod->freeCnf);
        switch (pMod->eType)
        {
            case eMOD_OUT:
                dbgprintf("Output Module Entry Points:\n");
                dbgprintf("\tdoAction:           %p\n", pMod->mod.om.doAction);
                dbgprintf("\tparseSelectorAct:   %p\n",
                          pMod->mod.om.parseSelectorAct);
                dbgprintf("\tnewActInst:         %p\n",
                          (pMod->mod.om.newActInst == dummynewActInst)
                              ? NULL
                              : pMod->mod.om.newActInst);
                dbgprintf("\ttryResume:          %p\n", pMod->tryResume);
                dbgprintf("\tdoHUP:              %p\n", pMod->doHUP);
                dbgprintf(
                    "\tBeginTransaction:   %p\n",
                    ((pMod->mod.om.beginTransaction == dummyBeginTransaction)
                         ? NULL
                         : pMod->mod.om.beginTransaction));
                dbgprintf("\tEndTransaction:     %p\n",
                          ((pMod->mod.om.endTransaction == dummyEndTransaction)
                               ? NULL
                               : pMod->mod.om.endTransaction));
                break;
            case eMOD_IN:
                dbgprintf("Input Module Entry Points\n");
                dbgprintf("\trunInput:           0x%lx\n",
                          (unsigned long)pMod->mod.im.runInput);
                dbgprintf("\twillRun:            0x%lx\n",
                          (unsigned long)pMod->mod.im.willRun);
                dbgprintf("\tafterRun:           0x%lx\n",
                          (unsigned long)pMod->mod.im.afterRun);
                break;
            case eMOD_LIB:
                break;
            case eMOD_PARSER:
                dbgprintf("Parser Module Entry Points\n");
                dbgprintf("\tparse:              0x%lx\n",
                          (unsigned long)pMod->mod.pm.parse);
                break;
            case eMOD_STRGEN:
                dbgprintf("Strgen Module Entry Points\n");
                dbgprintf("\tstrgen:            0x%lx\n",
                          (unsigned long)pMod->mod.sm.strgen);
                break;
            case eMOD_FUNCTION:
                dbgprintf("Function Module Entry Points\n");
                dbgprintf("\tgetFunctArray:     0x%lx\n",
                          (unsigned long)pMod->mod.fm.getFunctArray);
                break;
            case eMOD_ANY: 
                break;
        }
        dbgprintf("\n");
        pMod = GetNxt(pMod); 
    }
}
static void modPrintList ( void ) { modInfo_t * pMod ; pMod = GetNxt ( NULL ) ; while ( pMod != NULL ) { dbgprintf ( " " , ( char * ) modGetName ( pMod ) , pMod -> iIFVers ) ; dbgprintf ( " " ) ; switch ( pMod -> eType ) { case eMOD_OUT : dbgprintf ( " " ) ; break ; case eMOD_IN : dbgprintf ( " " ) ; break ; case eMOD_LIB : dbgprintf ( " " ) ; break ; case eMOD_PARSER : dbgprintf ( " " ) ; break ; case eMOD_STRGEN : dbgprintf ( " " ) ; break ; case eMOD_FUNCTION : dbgprintf ( " " ) ; break ; case eMOD_ANY : DBGPRINTF ( " \n " ) ; assert ( 0 ) ; break ; } dbgprintf ( " \n " ) ; dbgprintf ( " \n " ) ; dbgprintf ( " \t \n " , ( unsigned long ) pMod -> modQueryEtryPt ) ; dbgprintf ( " \t \n " , ( unsigned long ) pMod -> dbgPrintInstInfo ) ; dbgprintf ( " \t \n " , ( unsigned long ) pMod -> freeInstance ) ; dbgprintf ( " \t \n " , ( unsigned long ) pMod -> beginCnfLoad ) ; dbgprintf ( " \t \n " , ( unsigned long ) pMod -> setModCnf ) ; dbgprintf ( " \t \n " , ( unsigned long ) pMod -> checkCnf ) ; dbgprintf ( " \t \n " , ( unsigned long ) pMod -> activateCnfPrePrivDrop ) ; dbgprintf ( " \t \n " , ( unsigned long ) pMod -> activateCnf ) ; dbgprintf ( " \t \n " , ( unsigned long ) pMod -> freeCnf ) ; switch ( pMod -> eType ) { case eMOD_OUT : dbgprintf ( " \n " ) ; dbgprintf ( " \t \n " , pMod -> mod . om . doAction ) ; dbgprintf ( " \t \n " , pMod -> mod . om . parseSelectorAct ) ; dbgprintf ( " \t \n " , ( pMod -> mod . om . newActInst == dummynewActInst ) ? NULL : pMod -> mod . om . newActInst ) ; dbgprintf ( " \t \n " , pMod -> tryResume ) ; dbgprintf ( " \t \n " , pMod -> doHUP ) ; dbgprintf ( " \t \n " , ( ( pMod -> mod . om . beginTransaction == dummyBeginTransaction ) ? NULL : pMod -> mod . om . beginTransaction ) ) ; dbgprintf ( " \t \n " , ( ( pMod -> mod . om . endTransaction == dummyEndTransaction ) ? NULL : pMod -> mod . om . endTransaction ) ) ; break ; case eMOD_IN : dbgprintf ( " \n " ) ; dbgprintf ( " \t \n " , ( unsigned long ) pMod -> mod . im . runInput ) ; dbgprintf ( " \t \n " , ( unsigned long ) pMod -> mod . im . willRun ) ; dbgprintf ( " \t \n " , ( unsigned long ) pMod -> mod . im . afterRun ) ; break ; case eMOD_LIB : break ; case eMOD_PARSER : dbgprintf ( " \n " ) ; dbgprintf ( " \t \n " , ( unsigned long ) pMod -> mod . pm . parse ) ; break ; case eMOD_STRGEN : dbgprintf ( " \n " ) ; dbgprintf ( " \t \n " , ( unsigned long ) pMod -> mod . sm . strgen ) ; break ; case eMOD_FUNCTION : dbgprintf ( " \n " ) ; dbgprintf ( " \t \n " , ( unsigned long ) pMod -> mod . fm . getFunctArray ) ; break ; case eMOD_ANY : break ; } dbgprintf ( " \n " ) ; pMod = GetNxt ( pMod ) ; } }
Print loaded modules.
Print loaded modules .
/* this is mostly to keep the compiler happy! */ /* this is mostly to keep the compiler happy! */ /* done, go next */