summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-10-07 15:10:03 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2008-10-07 15:10:03 +0200
commit0fa23994669417fff4c4c057ce0c9d1e96f6d56c (patch)
treef3e2e4c8a50990dddda95f1ca46a8f61e2a9afdb /runtime
parent8528344ef58b5d2907bba8809f63d0bca2ce8d38 (diff)
downloadrsyslog-0fa23994669417fff4c4c057ce0c9d1e96f6d56c.tar.gz
rsyslog-0fa23994669417fff4c4c057ce0c9d1e96f6d56c.tar.xz
rsyslog-0fa23994669417fff4c4c057ce0c9d1e96f6d56c.zip
cleanup of output timestamp generation
Diffstat (limited to 'runtime')
-rw-r--r--runtime/msg.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/msg.c b/runtime/msg.c
index fd838591..c030fa45 100644
--- a/runtime/msg.c
+++ b/runtime/msg.c
@@ -778,6 +778,7 @@ int getPRIi(msg_t *pM)
char *getTimeReported(msg_t *pM, enum tplFormatTypes eFmt)
{
+ BEGINfunc
if(pM == NULL)
return "";
@@ -849,11 +850,13 @@ char *getTimeReported(msg_t *pM, enum tplFormatTypes eFmt)
MsgUnlock(pM);
return(pM->pszTIMESTAMP_SecFrac);
}
+ ENDfunc
return "INVALID eFmt OPTION!";
}
char *getTimeGenerated(msg_t *pM, enum tplFormatTypes eFmt)
{
+ BEGINfunc
if(pM == NULL)
return "";
@@ -925,6 +928,7 @@ char *getTimeGenerated(msg_t *pM, enum tplFormatTypes eFmt)
MsgUnlock(pM);
return(pM->pszRcvdAt_SecFrac);
}
+ ENDfunc
return "INVALID eFmt OPTION!";
}