summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorAndre Lorbach <alorbach@adiscon.com>2011-08-12 14:48:43 +0200
committerAndre Lorbach <alorbach@adiscon.com>2011-08-12 14:48:43 +0200
commit169791752520693d3c81568037bfa319e5081819 (patch)
tree9bd1275163017c425deba1f6eb6b006d50c254a6 /runtime
parentb4d4366986b464ae4a75594ab7df0a5edb2ee08f (diff)
downloadrsyslog-169791752520693d3c81568037bfa319e5081819.tar.gz
rsyslog-169791752520693d3c81568037bfa319e5081819.tar.xz
rsyslog-169791752520693d3c81568037bfa319e5081819.zip
Added debug output into message parsers needed for bugtracking
Changed version to 5.8.5-pre1
Diffstat (limited to 'runtime')
-rw-r--r--runtime/msg.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/msg.c b/runtime/msg.c
index b18fb530..f1de8130 100644
--- a/runtime/msg.c
+++ b/runtime/msg.c
@@ -1661,6 +1661,8 @@ void MsgSetTAG(msg_t *pMsg, uchar* pszBuf, size_t lenBuf)
uchar *pBuf;
assert(pMsg != NULL);
+dbgprintf("MsgSetTAG in: len %d, pszBuf: %s\n", lenBuf, pszBuf);
+
freeTAG(pMsg);
pMsg->iLenTAG = lenBuf;
@@ -1679,6 +1681,8 @@ void MsgSetTAG(msg_t *pMsg, uchar* pszBuf, size_t lenBuf)
memcpy(pBuf, pszBuf, pMsg->iLenTAG);
pBuf[pMsg->iLenTAG] = '\0'; /* this also works with truncation! */
+
+dbgprintf("MsgSetTAG exit: pMsg->iLenTAG %d, pMsg->TAG.szBuf: %s\n", pMsg->iLenTAG, pMsg->TAG.szBuf);
}
@@ -1737,6 +1741,7 @@ getTAG(msg_t *pM, uchar **ppBuf, int *piLen)
*piLen = pM->iLenTAG;
}
}
+dbgprintf("getTAG: len %d, buf '%s'\n", *piLen, *ppBuf);
}