diff options
author | Michael Biebl <biebl@debian.org> | 2008-03-29 12:14:44 +0100 |
---|---|---|
committer | Michael Biebl <biebl@debian.org> | 2008-03-29 12:14:44 +0100 |
commit | 12e8c69354614a03f06a8617f25d145ab091f504 (patch) | |
tree | 3b19dc723cc0ce48020bc3f077e7d5d27b3a1cfe /template.c | |
parent | 81367522c83c4b1b8cb157925e103edc9f148cd4 (diff) | |
download | rsyslog-12e8c69354614a03f06a8617f25d145ab091f504.tar.gz |
Imported Upstream version 1.20.1upstream/1.20.1
Diffstat (limited to 'template.c')
-rw-r--r-- | template.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -424,6 +424,8 @@ static void doOptions(unsigned char **pp, struct templateEntry *pTpe) */ if(!strcmp((char*)Buf, "date-mysql")) { pTpe->data.field.eDateFormat = tplFmtMySQLDate; + } else if(!strcmp((char*)Buf, "date-pgsql")) { + pTpe->data.field.eDateFormat = tplFmtPgSQLDate; } else if(!strcmp((char*)Buf, "date-rfc3164")) { pTpe->data.field.eDateFormat = tplFmtRFC3164Date; } else if(!strcmp((char*)Buf, "date-rfc3339")) { @@ -924,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)"); @@ -941,6 +943,9 @@ void tplPrintList(void) case tplFmtMySQLDate: dbgprintf("[Format as MySQL-Date] "); break; + case tplFmtPgSQLDate: + dbgprintf("[Format as PgSQL-Date] "); + break; case tplFmtRFC3164Date: dbgprintf("[Format as RFC3164-Date] "); break; |