Skip to content

Commit 150d8b6

Browse files
committed
bindings: fix AuEvent milli format specifier
1 parent c23325d commit 150d8b6

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

bindings/python/auparse_python.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,10 +184,11 @@ static PyMemberDef AuEvent_members[] = {
184184
};
185185

186186
static char *
187-
fmt_event(time_t seconds, unsigned int milli, unsigned long serial, const char *host)
187+
fmt_event(time_t seconds, unsigned int milli, unsigned long serial,
188+
const char *host)
188189
{
189190
static char buf1[200], buf2[200];
190-
char fmt[] = "%a %b %d %H:%M:%S.%%ld %Y serial=%%ld host=%%s";
191+
char fmt[] = "%a %b %d %H:%M:%S.%%u %Y serial=%%ld host=%%s";
191192
struct tm *tmp;
192193

193194
tmp = localtime(&seconds);

0 commit comments

Comments
 (0)