]> git.tdb.fi Git - builder.git/blobdiff - source/action.cpp
Add comments
[builder.git] / source / action.cpp
index 7ed0da1efc0b9c0c12d0d199835adbb83fac9228..782546ae0512568dd8b294d69534d327ed136891 100644 (file)
@@ -5,11 +5,14 @@
 
 using namespace std;
 
+/**
+Annouces the action by printing out the package name, tool and target name.
+*/
 void Action::announce(const string &pkg, const string &tool, const string &tgt)
 {
        ostringstream line;
        line<<left;
-       line<<'['<<setw(10)<<pkg<<"] ";
+       line<<'['<<setw(10)<<pkg.substr(0, 10)<<"] ";
        line<<'['<<setw(4)<<tool<<"] ";
        line<<tgt;
        cout<<line.str()<<'\n';