ifconfig: Fix wrong indentation for the status of pfsync(4)

The leading tab is always required, regardless of the configuration of
`syncdev` or `syncpeer`, as `maxupd`, `defer` and `version` all require
it.

Reviewed by:	kp
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D47112

(cherry picked from commit 1c95ec17cae22fb76d4e93c9eada78e03ca1bca6)
This commit is contained in:
Zhenlei Huang 2024-10-20 22:06:33 +08:00
parent 22aed646a5
commit 01f4a503eb

View file

@ -374,8 +374,7 @@ pfsync_status(if_ctx *ctx)
nvlist_destroy(nvl);
if (syncdev[0] != '\0' || syncpeer.ss_family != AF_UNSPEC)
printf("\t");
printf("\t");
if (syncdev[0] != '\0')
printf("syncdev: %s ", syncdev);