From 3afc514f32bc9e05e4721eb88657752074186e34 Mon Sep 17 00:00:00 2001 From: Wen Liang Date: Mon, 4 Mar 2024 16:33:00 -0500 Subject: [PATCH] logging 9 --- src/core/nm-policy.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/core/nm-policy.c b/src/core/nm-policy.c index 24ee257614..2b9a506c69 100644 --- a/src/core/nm-policy.c +++ b/src/core/nm-policy.c @@ -330,7 +330,18 @@ ip6_remove_device_prefix_delegations(NMPolicy *self, NMDevice *device) nm_device_get_applied_connection(device), device, subnet); - g_hash_table_remove(delegation->subnets, subnet); + if (!g_hash_table_remove(delegation->subnets, subnet)) { + _LOGW(LOGD_DEVICE, + "---- %s:%d : down link subnet removed, connection on device %p, the " + "device " + "is %p, the subnet is %p faillllllll", + __func__, + __LINE__, + nm_device_get_applied_connection(device), + device, + subnet); + subnet->preferred = 0; + } } } }