mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-04 15:40:44 +00:00
ndp: fix timestamp display output
The current xo_format string is incorrect. This restores the display
format prior to libxo-ification work while also explicitly marking
tv_sec and tv_usec as encoded output only.
MFC after: 1 week
Reviewed by: kp
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D42269
(cherry picked from commit 2bb78b46e0
)
This commit is contained in:
parent
8ca5539ae1
commit
8bfa084a4b
|
@ -1481,7 +1481,7 @@ ts_print(const struct timeval *tvp)
|
|||
|
||||
/* Default */
|
||||
sec = (tvp->tv_sec + thiszone) % 86400;
|
||||
xo_emit("{:tv_sec/%lld}{:tv_usec/%lld}%02d:%02d:%02d.%06u ",
|
||||
xo_emit("{e:tv_sec/%lld}{e:tv_usec/%lld}{d:/%02d:%02d:%02d.%06u} ",
|
||||
tvp->tv_sec, tvp->tv_usec,
|
||||
sec / 3600, (sec % 3600) / 60, sec % 60, (u_int32_t)tvp->tv_usec);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue