statusbar: use boost::format instead of c-style printf

This commit is contained in:
Andrzej Rybczak
2014-08-27 05:25:53 +02:00
parent 8d1b10fb3e
commit 59430f640b
23 changed files with 283 additions and 219 deletions

View File

@@ -60,7 +60,7 @@ namespace
{
if (sig == SIGPIPE)
{
Statusbar::msg("SIGPIPE (broken pipe signal) received");
Statusbar::print("SIGPIPE (broken pipe signal) received");
}
else if (sig == SIGWINCH)
{
@@ -220,7 +220,7 @@ int main(int argc, char **argv)
myVisualizer->FindOutputID();
# endif // ENABLE_VISUALIZER
Statusbar::msg("Connected to %s", Mpd.GetHostname().c_str());
Statusbar::printf("Connected to \"%1%\"", Mpd.GetHostname());
}
catch (MPD::ClientError &e)
{
@@ -260,11 +260,11 @@ int main(int argc, char **argv)
}
catch (ConversionError &e)
{
Statusbar::msg("Couldn't convert value '%s' to target type", e.value().c_str());
Statusbar::printf("Couldn't convert value \"%1%\" to target type", e.value());
}
catch (OutOfBounds &e)
{
Statusbar::msg("%s", e.errorMessage().c_str());
Statusbar::print(e.errorMessage());
}
if (myScreen == myPlaylist)