logging 9

This commit is contained in:
Wen Liang 2024-03-04 16:33:00 -05:00
parent 2582bf60b5
commit 3afc514f32

View file

@ -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;
}
}
}
}