diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2007-12-07 13:27:52 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2007-12-07 13:27:52 +0000 |
commit | c67fe91bed88d9b178f3e21f1a4b44e4cd484359 (patch) | |
tree | 8ce16e7a24e16b37784748463f4c0f7aea3366e7 | |
parent | 1847d2d61d5c6da611203a3561d2b26c132d7bf5 (diff) | |
download | rsyslog-c67fe91bed88d9b178f3e21f1a4b44e4cd484359.tar.gz rsyslog-c67fe91bed88d9b178f3e21f1a4b44e4cd484359.tar.xz rsyslog-c67fe91bed88d9b178f3e21f1a4b44e4cd484359.zip |
fixed some type conversion warnings that appeared on 64 bit machines -
these were in debug statements, so indicated no real problem
-rw-r--r-- | cfsysline.c | 6 | ||||
-rw-r--r-- | modules.c | 10 | ||||
-rw-r--r-- | template.c | 2 |
3 files changed, 9 insertions, 9 deletions
diff --git a/cfsysline.c b/cfsysline.c index 196dc254..14f50927 100644 --- a/cfsysline.c +++ b/cfsysline.c @@ -780,9 +780,9 @@ void dbgPrintCfSysLineHandlers(void) llCookieCmdHdlr = NULL; while((iRet = llGetNextElt(&pCmd->llCmdHdlrs, &llCookieCmdHdlr, (void*)&pCmdHdlr)) == RS_RET_OK) { printf("\t\ttype : %d\n", pCmdHdlr->eType); - printf("\t\tpData: 0x%x\n", (unsigned) pCmdHdlr->pData); - printf("\t\tHdlr : 0x%x\n", (unsigned) pCmdHdlr->cslCmdHdlr); - printf("\t\tOwner: 0x%x\n", (unsigned) llCookieCmdHdlr->pKey); + printf("\t\tpData: 0x%lx\n", (unsigned long) pCmdHdlr->pData); + printf("\t\tHdlr : 0x%lx\n", (unsigned long) pCmdHdlr->cslCmdHdlr); + printf("\t\tOwner: 0x%lx\n", (unsigned long) llCookieCmdHdlr->pKey); printf("\n"); } } @@ -323,11 +323,11 @@ void modPrintList(void) } dbgprintf(" module.\n"); dbgprintf("Entry points:\n"); - dbgprintf("\tqueryEtryPt: 0x%x\n", (unsigned) pMod->modQueryEtryPt); - dbgprintf("\tdoAction: 0x%x\n", (unsigned) pMod->mod.om.doAction); - dbgprintf("\tparseSelectorAct: 0x%x\n", (unsigned) pMod->mod.om.parseSelectorAct); - dbgprintf("\tdbgPrintInstInfo: 0x%x\n", (unsigned) pMod->dbgPrintInstInfo); - dbgprintf("\tfreeInstance: 0x%x\n", (unsigned) pMod->freeInstance); + dbgprintf("\tqueryEtryPt: 0x%lx\n", (unsigned long) pMod->modQueryEtryPt); + dbgprintf("\tdoAction: 0x%lx\n", (unsigned long) pMod->mod.om.doAction); + dbgprintf("\tparseSelectorAct: 0x%lx\n", (unsigned long) pMod->mod.om.parseSelectorAct); + dbgprintf("\tdbgPrintInstInfo: 0x%lx\n", (unsigned long) pMod->dbgPrintInstInfo); + dbgprintf("\tfreeInstance: 0x%lx\n", (unsigned long) pMod->freeInstance); dbgprintf("\n"); pMod = modGetNxt(pMod); /* done, go next */ } @@ -926,7 +926,7 @@ void tplPrintList(void) dbgprintf("\n"); pTpe = pTpl->pEntryRoot; while(pTpe != NULL) { - dbgprintf("\tEntry(%x): type %d, ", (unsigned) pTpe, pTpe->eEntryType); + dbgprintf("\tEntry(%lx): type %d, ", (unsigned long) pTpe, pTpe->eEntryType); switch(pTpe->eEntryType) { case UNDEFINED: dbgprintf("(UNDEFINED)"); |