aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorR. Christian McDonald <rcm@rcm.sh>2023-10-17 16:57:22 +0000
committerKristof Provost <kp@FreeBSD.org>2023-10-24 07:45:35 +0000
commit169746a877f6f90214fec17bc0861eaf94cde855 (patch)
tree266537567a115019849670f871558fda1072e6a2
parent72b97a4e28617b600cc21eb51664d1e1f6e6f923 (diff)
downloadsrc-169746a877f6f90214fec17bc0861eaf94cde855.tar.gz
src-169746a877f6f90214fec17bc0861eaf94cde855.zip
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 2bb78b46e02413483409fe73244995524b838b6e)
-rw-r--r--usr.sbin/ndp/ndp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ndp/ndp.c b/usr.sbin/ndp/ndp.c
index 1e3469d54228..b7bc25dd7aa4 100644
--- a/usr.sbin/ndp/ndp.c
+++ b/usr.sbin/ndp/ndp.c
@@ -1544,7 +1544,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);
}