#include "LazyGuy.hpp"\r
#include <Host.hpp>\r
\r
-#include <iostream>\r
-using namespace std;\r
+#include <Msg.hpp>\r
\r
MSG_IMPLEMENT_DYNAMIC(LazyGuy, Process);\r
\r
int LazyGuy::main(int argc, char** argv)\r
{\r
- cout <<"[" << getName() << ":" << getHost().getName() << "] " << "Hello !" << endl;\r
+ info("Hello !");\r
\r
- cout <<"[" << getName() << ":" << getHost().getName() << "] " << "Nobody's watching me ? Let's go to sleep." << endl;\r
+ info("Nobody's watching me ? Let's go to sleep.");\r
\r
Process::currentProcess().suspend();\r
\r
- cout <<"[" << getName() << ":" << getHost().getName() << "] " << "Uuuh ? Did somebody call me ?" << endl;\r
- cout <<"[" << getName() << ":" << getHost().getName() << "] " << "Mmmh, goodbye now." << endl; \r
+ info("Uuuh ? Did somebody call me ?");\r
+ \r
+ info("Mmmh, goodbye now."); \r
\r
\r
delete this;\r