diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-02-28 13:25:43 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-02-28 13:25:43 +0000 |
commit | e06557a4cd02069579a8af060a461b88a676caab (patch) | |
tree | 7688896e7a24ea963500941358fe6774cbf789d3 /cfsysline.c | |
parent | 8f199e7b5a420d34ac40775fe8ff7abf82ed687f (diff) | |
download | rsyslog-e06557a4cd02069579a8af060a461b88a676caab.tar.gz rsyslog-e06557a4cd02069579a8af060a461b88a676caab.tar.xz rsyslog-e06557a4cd02069579a8af060a461b88a676caab.zip |
implemented environment-settable debug options
Diffstat (limited to 'cfsysline.c')
-rw-r--r-- | cfsysline.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/cfsysline.c b/cfsysline.c index 35ff76ad..67dc0940 100644 --- a/cfsysline.c +++ b/cfsysline.c @@ -960,21 +960,21 @@ void dbgPrintCfSysLineHandlers(void) linkedListCookie_t llCookieCmdHdlr; uchar *pKey; - printf("\nSytem Line Configuration Commands:\n"); + dbgprintf("Sytem Line Configuration Commands:\n"); llCookieCmd = NULL; while((iRet = llGetNextElt(&llCmdList, &llCookieCmd, (void*)&pCmd)) == RS_RET_OK) { llGetKey(llCookieCmd, (void*) &pKey); /* TODO: using the cookie is NOT clean! */ - printf("\tCommand '%s':\n", pKey); + dbgprintf("\tCommand '%s':\n", pKey); llCookieCmdHdlr = NULL; while((iRet = llGetNextElt(&pCmd->llCmdHdlrs, &llCookieCmdHdlr, (void*)&pCmdHdlr)) == RS_RET_OK) { - printf("\t\ttype : %d\n", pCmdHdlr->eType); - 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"); + dbgprintf("\t\ttype : %d\n", pCmdHdlr->eType); + dbgprintf("\t\tpData: 0x%lx\n", (unsigned long) pCmdHdlr->pData); + dbgprintf("\t\tHdlr : 0x%lx\n", (unsigned long) pCmdHdlr->cslCmdHdlr); + dbgprintf("\t\tOwner: 0x%lx\n", (unsigned long) llCookieCmdHdlr->pKey); + dbgprintf("\n"); } } - printf("\n"); + dbgprintf("\n"); ENDfunc } |