mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-07 03:48:09 +02:00
policy: fix logging about autoconnect retries number
NMPolicy printed
policy: connection 'a' failed to autoconnect; 1 tries left
settings-connection[0x55a485553b60,ab9f3891-3420-335e-89da-f14c1b94c540]: autoconnect: retries set 0
That is, it claimed there was one more try, when in fact there wasn't.
(cherry picked from commit 5fc4b32629)
This commit is contained in:
parent
d737438a19
commit
655d9f7961
1 changed files with 1 additions and 1 deletions
|
|
@ -1743,7 +1743,7 @@ device_state_changed (NMDevice *device,
|
||||||
} else if (tries != 0) {
|
} else if (tries != 0) {
|
||||||
if (tries > 0) {
|
if (tries > 0) {
|
||||||
_LOGD (LOGD_DEVICE, "connection '%s' failed to autoconnect; %d tries left",
|
_LOGD (LOGD_DEVICE, "connection '%s' failed to autoconnect; %d tries left",
|
||||||
nm_settings_connection_get_id (connection), tries);
|
nm_settings_connection_get_id (connection), tries - 1);
|
||||||
_connection_autoconnect_retries_set (self, connection, tries - 1);
|
_connection_autoconnect_retries_set (self, connection, tries - 1);
|
||||||
} else {
|
} else {
|
||||||
_LOGD (LOGD_DEVICE, "connection '%s' failed to autoconnect; infinite tries left",
|
_LOGD (LOGD_DEVICE, "connection '%s' failed to autoconnect; infinite tries left",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue