aboutsummaryrefslogtreecommitdiffstats
path: root/src/UpdateIO.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-09-27 22:31:24 +0200
committerMax Kellermann <max@duempel.org>2013-10-02 08:57:55 +0200
commit060814daa83f6a94f5934464ae42a406c5c7e947 (patch)
treef636ec6cdbb8e52fda6db987d2a28fc73c7b94b4 /src/UpdateIO.cxx
parentc53492a76a8a05825e1c7f699c05645eee891199 (diff)
downloadmpd-060814daa83f6a94f5934464ae42a406c5c7e947.tar.gz
mpd-060814daa83f6a94f5934464ae42a406c5c7e947.tar.xz
mpd-060814daa83f6a94f5934464ae42a406c5c7e947.zip
Log: new logging library API
Prepare to migrate away from GLib. Currently, we're still using GLib as a backend.
Diffstat (limited to '')
-rw-r--r--src/UpdateIO.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/UpdateIO.cxx b/src/UpdateIO.cxx
index 7e262555c..ba4fcb7cf 100644
--- a/src/UpdateIO.cxx
+++ b/src/UpdateIO.cxx
@@ -19,12 +19,12 @@
#include "config.h" /* must be first for large file support */
#include "UpdateIO.hxx"
+#include "src/UpdateDomain.hxx"
#include "Directory.hxx"
#include "Mapper.hxx"
#include "fs/Path.hxx"
#include "fs/FileSystem.hxx"
-
-#include <glib.h>
+#include "Log.hxx"
#include <errno.h>
#include <unistd.h>
@@ -39,8 +39,8 @@ stat_directory(const Directory *directory, struct stat *st)
if (!StatFile(path_fs, *st)) {
int error = errno;
const std::string path_utf8 = path_fs.ToUTF8();
- g_warning("Failed to stat %s: %s",
- path_utf8.c_str(), g_strerror(error));
+ FormatErrno(update_domain, error,
+ "Failed to stat %s", path_utf8.c_str());
return -1;
}
@@ -58,8 +58,8 @@ stat_directory_child(const Directory *parent, const char *name,
if (!StatFile(path_fs, *st)) {
int error = errno;
const std::string path_utf8 = path_fs.ToUTF8();
- g_warning("Failed to stat %s: %s",
- path_utf8.c_str(), g_strerror(error));
+ FormatErrno(update_domain, error,
+ "Failed to stat %s", path_utf8.c_str());
return -1;
}