Browse Source

warn only once

Samuel Thibault 12 years ago
parent
commit
1d1e075c8e
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/drivers/driver_common/driver_common.c

+ 3 - 1
src/drivers/driver_common/driver_common.c

@@ -178,8 +178,10 @@ struct starpu_task *_starpu_get_worker_task(struct _starpu_worker *args, int wor
 		else {
 		else {
 			if (_starpu_machine_is_running()) {
 			if (_starpu_machine_is_running()) {
 				static int warned;
 				static int warned;
-				if (!warned)
+				if (!warned) {
+					warned = 1;
 					_STARPU_DISP("Has to make simgrid spin for progression hooks\n");
 					_STARPU_DISP("Has to make simgrid spin for progression hooks\n");
+				}
 				MSG_process_sleep(0.000010);
 				MSG_process_sleep(0.000010);
 			}
 			}
 		}
 		}