#ifdef WITH_XF86VIDMODE
#include <X11/extensions/xf86vmode.h>
#endif
+#include <msp/io/print.h>
#include <msp/strings/format.h>
#include <msp/strings/lexicalcast.h>
#include "display.h"
string msg = Msp::format("Request %s failed with %s [%08X]", req, err, event->resourceid);
if(error_flag)
- cerr<<"Discarding error: "<<msg<<'\n';
+ Msp::IO::print(Msp::IO::cerr, "Discarding error: %s\n", msg);
else
{
- cerr<<msg<<'\n';
+ Msp::IO::print(Msp::IO::cerr, "%s\n", msg);
error_msg = msg;
error_flag = true;
}