vnet: Fix style nits

MFC after:	3 days

(cherry picked from commit 903c7cdac5b5b4b720aba7a48abffb48b2588c77)
This commit is contained in:
Zhenlei Huang 2025-01-30 23:59:35 +08:00 committed by Franco Fichtner
parent 3ff2763a72
commit a00bfe0fa7

View File

@ -204,7 +204,7 @@ struct vnet_data_free {
static MALLOC_DEFINE(M_VNET_DATA_FREE, "vnet_data_free",
"VNET resource accounting");
static TAILQ_HEAD(, vnet_data_free) vnet_data_free_head =
TAILQ_HEAD_INITIALIZER(vnet_data_free_head);
TAILQ_HEAD_INITIALIZER(vnet_data_free_head);
static struct sx vnet_data_free_lock;
SDT_PROVIDER_DEFINE(vnet);
@ -480,7 +480,7 @@ vnet_data_copy(void *start, int size)
void
vnet_register_sysinit(void *arg)
{
struct vnet_sysinit *vs, *vs2;
struct vnet_sysinit *vs, *vs2;
struct vnet *vnet;
vs = arg;
@ -755,11 +755,12 @@ db_show_vnet_print_vs(struct vnet_sysinit *vs, int ddb)
c_db_sym_t sym;
db_expr_t offset;
#define xprint(...) \
#define xprint(...) do { \
if (ddb) \
db_printf(__VA_ARGS__); \
else \
printf(__VA_ARGS__)
printf(__VA_ARGS__); \
} while (0)
if (vs == NULL) {
xprint("%s: no vnet_sysinit * given\n", __func__);