mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-09 09:28:06 +02:00
l3cfg: improve logging
- avoid "update" as it is also a commit type - make clear that the commit is not happening now
This commit is contained in:
parent
1f73034719
commit
e83e8b73f4
1 changed files with 2 additions and 2 deletions
|
|
@ -3281,7 +3281,7 @@ nm_l3cfg_commit_on_idle_schedule(NML3Cfg *self, NML3CfgCommitType commit_type)
|
||||||
if (self->priv.p->commit_on_idle_source) {
|
if (self->priv.p->commit_on_idle_source) {
|
||||||
if (self->priv.p->commit_on_idle_type < commit_type) {
|
if (self->priv.p->commit_on_idle_type < commit_type) {
|
||||||
/* For multiple calls, we collect the maximum "commit-type". */
|
/* For multiple calls, we collect the maximum "commit-type". */
|
||||||
_LOGT("commit on idle (scheduled) (update to %s)",
|
_LOGT("schedule commit on idle (upgrade type to %s)",
|
||||||
_l3_cfg_commit_type_to_string(commit_type,
|
_l3_cfg_commit_type_to_string(commit_type,
|
||||||
sbuf_commit_type,
|
sbuf_commit_type,
|
||||||
sizeof(sbuf_commit_type)));
|
sizeof(sbuf_commit_type)));
|
||||||
|
|
@ -3290,7 +3290,7 @@ nm_l3cfg_commit_on_idle_schedule(NML3Cfg *self, NML3CfgCommitType commit_type)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
_LOGT("commit on idle (scheduled) (%s)",
|
_LOGT("schedule commit on idle (%s)",
|
||||||
_l3_cfg_commit_type_to_string(commit_type, sbuf_commit_type, sizeof(sbuf_commit_type)));
|
_l3_cfg_commit_type_to_string(commit_type, sbuf_commit_type, sizeof(sbuf_commit_type)));
|
||||||
self->priv.p->commit_on_idle_source = nm_g_idle_add_source(_l3_commit_on_idle_cb, self);
|
self->priv.p->commit_on_idle_source = nm_g_idle_add_source(_l3_commit_on_idle_cb, self);
|
||||||
self->priv.p->commit_on_idle_type = commit_type;
|
self->priv.p->commit_on_idle_type = commit_type;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue