Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove useless \n in DEBUG messages.
authoralegrand <alegrand@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 5 Mar 2008 01:51:01 +0000 (01:51 +0000)
committeralegrand <alegrand@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 5 Mar 2008 01:51:01 +0000 (01:51 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@5253 48e7efb5-ca39-0410-a469-dd3cf9ba447f

testsuite/surf/surf_usage.c

index 6d5b8c8..0120883 100644 (file)
@@ -58,14 +58,14 @@ void test(char *platform)
   parse_platform_file(platform);
 
   /*********************** CPU ***********************************/
   parse_platform_file(platform);
 
   /*********************** CPU ***********************************/
-  DEBUG1("%p \n", surf_cpu_model);
+  DEBUG1("%p", surf_cpu_model);
   cpuA = surf_cpu_model->common_public->name_service("Cpu A");
   cpuB = surf_cpu_model->common_public->name_service("Cpu B");
 
   /* Let's check that those two processors exist */
   cpuA = surf_cpu_model->common_public->name_service("Cpu A");
   cpuB = surf_cpu_model->common_public->name_service("Cpu B");
 
   /* Let's check that those two processors exist */
-  DEBUG2("%s : %p\n",
+  DEBUG2("%s : %p",
         surf_cpu_model->common_public->get_resource_name(cpuA), cpuA);
         surf_cpu_model->common_public->get_resource_name(cpuA), cpuA);
-  DEBUG2("%s : %p\n",
+  DEBUG2("%s : %p",
         surf_cpu_model->common_public->get_resource_name(cpuB), cpuB);
 
   /* Let's do something on it */
         surf_cpu_model->common_public->get_resource_name(cpuB), cpuB);
 
   /* Let's do something on it */
@@ -79,20 +79,20 @@ void test(char *platform)
   stateActionC = surf_cpu_model->common_public->action_get_state(actionC);     /* When you know actionA model type */
 
   /* And just look at the state of these tasks */
   stateActionC = surf_cpu_model->common_public->action_get_state(actionC);     /* When you know actionA model type */
 
   /* And just look at the state of these tasks */
-  DEBUG2("actionA : %p (%s)\n", actionA, string_action(stateActionA));
-  DEBUG2("actionB : %p (%s)\n", actionB, string_action(stateActionB));
-  DEBUG2("actionC : %p (%s)\n", actionB, string_action(stateActionC));
+  DEBUG2("actionA : %p (%s)", actionA, string_action(stateActionA));
+  DEBUG2("actionB : %p (%s)", actionB, string_action(stateActionB));
+  DEBUG2("actionC : %p (%s)", actionB, string_action(stateActionC));
 
   /*********************** Network *******************************/
 
   /*********************** Network *******************************/
-  DEBUG1("%p \n", surf_network_model);
+  DEBUG1("%p", surf_network_model);
   cardA = surf_network_model->common_public->name_service("Cpu A");
   cardB = surf_network_model->common_public->name_service("Cpu B");
 
   /* Let's check that those two processors exist */
   cardA = surf_network_model->common_public->name_service("Cpu A");
   cardB = surf_network_model->common_public->name_service("Cpu B");
 
   /* Let's check that those two processors exist */
-  DEBUG2("%s : %p\n",
+  DEBUG2("%s : %p",
         surf_network_model->common_public->get_resource_name(cardA),
         cardA);
         surf_network_model->common_public->get_resource_name(cardA),
         cardA);
-  DEBUG2("%s : %p\n",
+  DEBUG2("%s : %p",
         surf_network_model->common_public->get_resource_name(cardB),
         cardB);
 
         surf_network_model->common_public->get_resource_name(cardB),
         cardB);
 
@@ -105,37 +105,37 @@ void test(char *platform)
   do {
     surf_action_t action = NULL;
     now = surf_get_clock();
   do {
     surf_action_t action = NULL;
     now = surf_get_clock();
-    DEBUG1("Next Event : " "%g" "\n", now);
-    DEBUG0("\t CPU actions\n");
+    DEBUG1("Next Event : %g", now);
+    DEBUG0("\t CPU actions");
     while ((action =
            xbt_swag_extract(surf_cpu_model->common_public->states.
                             failed_action_set))) {
     while ((action =
            xbt_swag_extract(surf_cpu_model->common_public->states.
                             failed_action_set))) {
-      DEBUG1("\t * Failed : %p\n", action);
+      DEBUG1("\t * Failed : %p", action);
       action->model_type->common_public->action_free(action);
     }
     while ((action =
            xbt_swag_extract(surf_cpu_model->common_public->states.
                             done_action_set))) {
       action->model_type->common_public->action_free(action);
     }
     while ((action =
            xbt_swag_extract(surf_cpu_model->common_public->states.
                             done_action_set))) {
-      DEBUG1("\t * Done : %p\n", action);
+      DEBUG1("\t * Done : %p", action);
       action->model_type->common_public->action_free(action);
     }
       action->model_type->common_public->action_free(action);
     }
-    DEBUG0("\t Network actions\n");
+    DEBUG0("\t Network actions");
     while ((action =
            xbt_swag_extract(surf_network_model->common_public->states.
                             failed_action_set))) {
     while ((action =
            xbt_swag_extract(surf_network_model->common_public->states.
                             failed_action_set))) {
-      DEBUG1("\t * Failed : %p\n", action);
+      DEBUG1("\t * Failed : %p", action);
       action->model_type->common_public->action_free(action);
     }
     while ((action =
            xbt_swag_extract(surf_network_model->common_public->states.
                             done_action_set))) {
       action->model_type->common_public->action_free(action);
     }
     while ((action =
            xbt_swag_extract(surf_network_model->common_public->states.
                             done_action_set))) {
-      DEBUG1("\t * Done : %p\n", action);
+      DEBUG1("\t * Done : %p", action);
       action->model_type->common_public->action_free(action);
     }
 
   } while (surf_solve()>=0.0);
 
       action->model_type->common_public->action_free(action);
     }
 
   } while (surf_solve()>=0.0);
 
-  DEBUG0("Simulation Terminated\n");
+  DEBUG0("Simulation Terminated");
 }
 
 #ifdef __BORLANDC__
 }
 
 #ifdef __BORLANDC__