From 1ad52f131c7adf3396ea03d8da0da807da222bba Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 24 Dec 2013 14:44:08 +0100 Subject: test/*: use fprintf(stderr,...) and Log() instead of g_printerr() Avoid GLib. --- test/software_volume.cxx | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'test/software_volume.cxx') diff --git a/test/software_volume.cxx b/test/software_volume.cxx index ae2d53a08..1a336f2df 100644 --- a/test/software_volume.cxx +++ b/test/software_volume.cxx @@ -30,8 +30,7 @@ #include "util/ConstBuffer.hxx" #include "util/Error.hxx" #include "stdbin.h" - -#include +#include "Log.hxx" #include #include @@ -43,17 +42,16 @@ int main(int argc, char **argv) ssize_t nbytes; if (argc > 2) { - g_printerr("Usage: software_volume [FORMAT] OUT\n"); - return 1; + fprintf(stderr, "Usage: software_volume [FORMAT] OUT\n"); + return EXIT_FAILURE; } Error error; AudioFormat audio_format(48000, SampleFormat::S16, 2); if (argc > 1) { if (!audio_format_parse(audio_format, argv[1], false, error)) { - g_printerr("Failed to parse audio format: %s\n", - error.GetMessage()); - return 1; + LogError(error, "Failed to parse audio format"); + return EXIT_FAILURE; } } -- cgit v1.2.3