mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 15:10:09 +01:00
logging: always pass a static format string to logging functions
(cherry picked from commit bdec5e2e53)
This commit is contained in:
parent
b3cae064d1
commit
2f53e0dfbc
1 changed files with 2 additions and 2 deletions
|
|
@ -3630,7 +3630,7 @@ do_sleep_wake (NMManager *self, gboolean sleeping_changed)
|
|||
waking_from_suspend = sleeping_changed && !priv->sleeping;
|
||||
|
||||
if (manager_sleeping (self)) {
|
||||
nm_log_info (LOGD_SUSPEND, suspending ? "sleeping..." : "disabling...");
|
||||
nm_log_info (LOGD_SUSPEND, "%s...", suspending ? "sleeping" : "disabling");
|
||||
|
||||
/* FIXME: are there still hardware devices that need to be disabled around
|
||||
* suspend/resume?
|
||||
|
|
@ -3648,7 +3648,7 @@ do_sleep_wake (NMManager *self, gboolean sleeping_changed)
|
|||
nm_device_set_unmanaged (device, NM_UNMANAGED_INTERNAL, TRUE, NM_DEVICE_STATE_REASON_SLEEPING);
|
||||
}
|
||||
} else {
|
||||
nm_log_info (LOGD_SUSPEND, waking_from_suspend ? "waking up..." : "re-enabling...");
|
||||
nm_log_info (LOGD_SUSPEND, "%s...", waking_from_suspend ? "waking up" : "re-enabling");
|
||||
|
||||
if (waking_from_suspend) {
|
||||
/* Belatedly take down Wake-on-LAN devices; ideally we wouldn't have to do this
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue