summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-12-07 13:27:52 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-12-07 13:27:52 +0000
commitc67fe91bed88d9b178f3e21f1a4b44e4cd484359 (patch)
tree8ce16e7a24e16b37784748463f4c0f7aea3366e7
parent1847d2d61d5c6da611203a3561d2b26c132d7bf5 (diff)
downloadrsyslog-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.c6
-rw-r--r--modules.c10
-rw-r--r--template.c2
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");
}
}
diff --git a/modules.c b/modules.c
index 36847373..83e9c560 100644
--- a/modules.c
+++ b/modules.c
@@ -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 */
}
diff --git a/template.c b/template.c
index 048d9314..6057109a 100644
--- a/template.c
+++ b/template.c
@@ -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)");