Distributed under the LGPL
*/
-#include <iomanip>
-#include <iostream>
-#include <sstream>
+#include <msp/io/print.h>
#include "action.h"
+using namespace Msp;
using namespace std;
void Action::announce(const string &pkg, const string &tool, const string &tgt)
{
- ostringstream line;
- line<<left;
- line<<'['<<setw(10)<<pkg.substr(0, 10)<<"] ";
- line<<'['<<setw(4)<<tool<<"] ";
- line<<tgt;
- cout<<line.str()<<'\n';
+ IO::print("[%-10s] [%4s] %s\n", pkg.substr(0, 10), tool, tgt);
}