git: b3877767883e - main - ndp: Fix libxo formatting for the prefix expiry string
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 15 Jul 2024 20:22:43 UTC
The branch main has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=b3877767883e9b26fbcce47c015ba3eab323bf1b
commit b3877767883e9b26fbcce47c015ba3eab323bf1b
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2024-07-15 20:06:24 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2024-07-15 20:22:00 +0000
ndp: Fix libxo formatting for the prefix expiry string
Fixes: e1c7783e220b ("ndp(8): add structured output formatting via libxo")
MFC after: 1 week
Sponsored by: Klara, Inc.
Sponsored by: Bell Tower Integration
---
usr.sbin/ndp/ndp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/usr.sbin/ndp/ndp.c b/usr.sbin/ndp/ndp.c
index dcb3b5e3571b..637aac2823ed 100644
--- a/usr.sbin/ndp/ndp.c
+++ b/usr.sbin/ndp/ndp.c
@@ -1334,7 +1334,7 @@ plist(void)
if (p->expire == 0)
xo_emit(", expire=Never{en:permanent/true}");
else if (p->expire >= now.tv_sec)
- xo_emit(", expire=%s{e:expires_sec/%d}",
+ xo_emit(", expire={:expires/%s}{e:expires_sec/%d}",
sec2str(expire_in), expire_in);
else
xo_emit(", expired{e:expires_sec/%d}", expire_in);