summaryrefslogtreecommitdiffstats
path: root/runtime/msg.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2011-07-08 14:59:42 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2011-07-08 14:59:42 +0200
commitd649820ee508a9de3bcf37a9e3b71ff11ca3a8ea (patch)
treeb929df752b35c5d9a4043e0eca87690214f30934 /runtime/msg.c
parent379bd30a5481056c2e5e71443149fb6b3b2295fc (diff)
downloadrsyslog-d649820ee508a9de3bcf37a9e3b71ff11ca3a8ea.tar.gz
rsyslog-d649820ee508a9de3bcf37a9e3b71ff11ca3a8ea.tar.xz
rsyslog-d649820ee508a9de3bcf37a9e3b71ff11ca3a8ea.zip
cosmetic updates
Diffstat (limited to 'runtime/msg.c')
-rw-r--r--runtime/msg.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/runtime/msg.c b/runtime/msg.c
index 4e96a02f..0de805a7 100644
--- a/runtime/msg.c
+++ b/runtime/msg.c
@@ -3108,9 +3108,8 @@ uchar *MsgGetProp(msg_t *pMsg, struct templateEntry *pTpe,
}
-/* The function returns a cee variable suitable for use with RainerScript. Most importantly, this means
- * that the value is returned in a var_t object. The var_t is constructed inside this function and
- * MUST be freed by the caller.
+/* The function returns a cee variable suitable for use with RainerScript.
+ * Note: caller must free the returned string.
* Note that we need to do a lot of conversions between es_str_t and cstr -- this will go away once
* we have moved larger parts of rsyslog to es_str_t. Acceptable for the moment, especially as we intend
* to rewrite the script engine as well!
@@ -3131,7 +3130,6 @@ msgGetCEEVarNew(msg_t *pMsg, char *name)
}
epropName = es_newStrFromCStr(name, strlen(name)); // TODO: optimize (in grammar!)
-dbgprintf("ZZZZ: pmsg->event %p\n", pMsg->event);
field = ee_getEventField(pMsg->event, epropName);
if(field != NULL) {
estr = ee_getFieldValueAsStr(field, 0);