Mercurial > illumos > illumos-gate
changeset 10959:03b72d60ca65
6419114 praudit in raw XML format concatenates the seconds and microseconds for iso8601
author | Marek Pospisil <Marek.Pospisil@Sun.COM> |
---|---|
date | Thu, 05 Nov 2009 06:05:42 -0800 |
parents | 2d0d7434a4fb |
children | dcc7d6f9faa8 |
files | usr/src/cmd/praudit/format.c |
diffstat | 1 files changed, 11 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/cmd/praudit/format.c Thu Nov 05 01:05:36 2009 -0800 +++ b/usr/src/cmd/praudit/format.c Thu Nov 05 06:05:42 2009 -0800 @@ -19,7 +19,7 @@ * CDDL HEADER END */ /* - * Copyright 2008 Sun Microsystems, Inc. All rights reserved. + * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -2477,6 +2477,11 @@ uval.uvaltype = PRA_UINT32; uval.uint32_val = (uint32_t)tv_sec; (void) pa_print(context, &uval, 0); + if (context->format & PRF_XMLM) { + uval.uvaltype = PRA_CHAR; + uval.char_val = '.'; + (void) pa_print(context, &uval, 0); + } uval.uvaltype = PRA_UINT32; uval.uint32_val = t32; } @@ -2586,6 +2591,11 @@ uval.uvaltype = PRA_UINT64; uval.uint64_val = t64_sec; (void) pa_print(context, &uval, 0); + if (context->format & PRF_XMLM) { + uval.uvaltype = PRA_CHAR; + uval.char_val = '.'; + (void) pa_print(context, &uval, 0); + } uval.uvaltype = PRA_UINT64; uval.uint64_val = t64_msec; }