Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Eradicate fprintf, use proper logging function
[simgrid.git] / examples / ping / ping.c
index d43603b..b27ecf3 100644 (file)
@@ -164,7 +164,7 @@ int client(int argc,char *argv[]) {
     port=atoi(argv[2]);
   } 
 
-  fprintf(stderr,"Launch client (server on %s:%d)",host,port);
+  INFO2("Launch client (server on %s:%d)",host,port);
   if (!gras_if_RL())
     gras_sleep(5,0); /* Wait for the server to be setup */
   if ((errcode=gras_socket_client(host,port,&(g->sock)))) {