diff options
author | Richard Hughes <richard@hughsie.com> | 2011-10-06 09:12:04 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2011-10-06 09:12:04 +0100 |
commit | 58f77e8aa6e987ebe83358c9bb30e94b80756cdb (patch) | |
tree | 78d750d8ef1790868ee63e2f255be7e5ca8493f8 /src | |
parent | 60e5e2918872bca5771d439578f95bb42bbe3563 (diff) | |
download | upower-58f77e8aa6e987ebe83358c9bb30e94b80756cdb.tar.gz |
Don't spam the log when we're saving history when on low power
Resolves: https://bugs.freedesktop.org/show_bug.cgi?id=41486
Diffstat (limited to 'src')
-rw-r--r-- | src/linux/sysfs-utils.c | 5 | ||||
-rw-r--r-- | src/up-history.c | 2 |
2 files changed, 1 insertions, 6 deletions
diff --git a/src/linux/sysfs-utils.c b/src/linux/sysfs-utils.c index efba253..7beecca 100644 --- a/src/linux/sysfs-utils.c +++ b/src/linux/sysfs-utils.c @@ -216,19 +216,14 @@ sysfs_resolve_link (const char *dir, const char *attribute) full_path = g_build_filename (dir, attribute, NULL); - //g_warning ("attribute='%s'", attribute); - //g_warning ("full_path='%s'", full_path); num = readlink (full_path, link_path, sizeof (link_path) - 1); if (num != -1) { char *absolute_path; link_path[num] = '\0'; - //g_warning ("link_path='%s'", link_path); absolute_path = g_build_filename (dir, link_path, NULL); - //g_warning ("absolute_path='%s'", absolute_path); if (realpath (absolute_path, resolved_path) != NULL) { - //g_warning ("resolved_path='%s'", resolved_path); found_it = TRUE; } g_free (absolute_path); diff --git a/src/up-history.c b/src/up-history.c index 449b294..945db8f 100644 --- a/src/up-history.c +++ b/src/up-history.c @@ -631,7 +631,7 @@ up_history_schedule_save (UpHistory *history) /* if low power, then don't batch up save requests */ ret = up_history_is_low_power (history); if (ret) { - g_warning ("saving directly to disk as low power"); + g_debug ("saving directly to disk as low power"); up_history_save_data (history); return TRUE; } |