diff options
author | Max Kellermann <max@duempel.org> | 2013-12-15 17:12:43 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-12-15 18:52:13 +0100 |
commit | 66d90dd412cd102879a1ceff83df5aad9f08a21c (patch) | |
tree | 84f314c59cb64b3a1dcb8210e9f5ceac08c519eb /test/run_normalize.cxx | |
parent | d5dfe7d457b559bd9c53d65d0315c55611cc6a79 (diff) | |
download | mpd-66d90dd412cd102879a1ceff83df5aad9f08a21c.tar.gz mpd-66d90dd412cd102879a1ceff83df5aad9f08a21c.tar.xz mpd-66d90dd412cd102879a1ceff83df5aad9f08a21c.zip |
test/*: use fprintf(stderr,...) and Log() instead of g_printerr()
Avoid GLib.
Diffstat (limited to '')
-rw-r--r-- | test/run_normalize.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/run_normalize.cxx b/test/run_normalize.cxx index 3193fefd2..091c3d61a 100644 --- a/test/run_normalize.cxx +++ b/test/run_normalize.cxx @@ -33,6 +33,7 @@ #include <glib.h> #include <stddef.h> +#include <stdio.h> #include <unistd.h> #include <string.h> @@ -43,7 +44,7 @@ int main(int argc, char **argv) ssize_t nbytes; if (argc > 2) { - g_printerr("Usage: run_normalize [FORMAT] <IN >OUT\n"); + fprintf(stderr, "Usage: run_normalize [FORMAT] <IN >OUT\n"); return 1; } @@ -51,7 +52,7 @@ int main(int argc, char **argv) if (argc > 1) { Error error; if (!audio_format_parse(audio_format, argv[1], false, error)) { - g_printerr("Failed to parse audio format: %s\n", + fprintf(stderr, "Failed to parse audio format: %s\n", error.GetMessage()); return 1; } |