]> rtime.felk.cvut.cz Git - frescor/fna.git/blobdiff - src_frescan/frescan_servers_replenishments.c
some reorganization... now the acceptor is simpler.. everything goes through requests...
[frescor/fna.git] / src_frescan / frescan_servers_replenishments.c
index c47fb1846d3e09c4a77d1e970b1841d61f4d544a..58d76a401d75803b2f7af89ae623b775279785e0 100644 (file)
@@ -105,7 +105,7 @@ static void *frescan_repl_thread(void *arg)
 
                 if (siginfo.si_signo != FRESCAN_REPL_SIGNAL_NUM) continue;
 
-                DEBUG(FRESCAN_REPL_ENABLE_DEBUG,
+                DEBUG(FRESCAN_REPLENSH_ENABLE_DEBUG,
                       "net:%u signal:%d code:%d value(server_id):%d\n",
                       net,
                       siginfo.si_signo,            // FRESCAN_REPL_SIGNAL_NUM
@@ -115,7 +115,7 @@ static void *frescan_repl_thread(void *arg)
                 id = siginfo.si_value.sival_int;
                 server = &the_servers_pool[net][id];
 
-                DEBUG(FRESCAN_REPL_ENABLE_DEBUG,
+                DEBUG(FRESCAN_REPLENSH_ENABLE_DEBUG,
                       "id:%u, current_budget:%u, budget:%u, current_prio:%u\n",
                       id,
                       server->current_budget,
@@ -128,7 +128,7 @@ static void *frescan_repl_thread(void *arg)
                         server->current_priority = server->params.prio;
                 }
 
-                DEBUG(FRESCAN_REPL_ENABLE_DEBUG,
+                DEBUG(FRESCAN_REPLENSH_ENABLE_DEBUG,
                       "now... current_budget:%u, current_prio:%u\n",
                       server->current_budget,
                       server->current_priority);
@@ -157,7 +157,7 @@ static void *frescan_repl_thread(void *arg)
 
                 timerdata.it_value = repl->when;
 
-                DEBUG(FRESCAN_REPL_ENABLE_DEBUG,
+                DEBUG(FRESCAN_REPLENSH_ENABLE_DEBUG,
                       "set timer to %d sec, %d nsec\n",
                       repl->when.tv_sec, repl->when.tv_nsec);
 
@@ -254,7 +254,7 @@ int frescan_replenishment_program(frescan_network_t net,
         server = &the_servers_pool[net][ss];
 
         if (server->current_priority == FRESCAN_BACKGROUND_PRIO) {
-                DEBUG(FRESCAN_REPL_ENABLE_DEBUG, "ss in background\n");
+                DEBUG(FRESCAN_REPLENSH_ENABLE_DEBUG, "ss in background\n");
                 return 0;
         }
 
@@ -269,7 +269,7 @@ int frescan_replenishment_program(frescan_network_t net,
         repl->amount = 1;
 
         empty = list_empty(&server->replenishments.repl_list);
-        DEBUG(FRESCAN_REPL_ENABLE_DEBUG, "ss:%u, empty:%u\n", ss, empty);
+        DEBUG(FRESCAN_REPLENSH_ENABLE_DEBUG, "ss:%u, empty:%u\n", ss, empty);
 
         list_add_tail(&repl->repl_list,
                       &server->replenishments.repl_list);
@@ -279,7 +279,7 @@ int frescan_replenishment_program(frescan_network_t net,
                 timerdata.it_interval.tv_nsec = 0;
                 timerdata.it_value = repl->when;
 
-                DEBUG(FRESCAN_REPL_ENABLE_DEBUG,
+                DEBUG(FRESCAN_REPLENSH_ENABLE_DEBUG,
                       "set timer to %d sec, %d nsec\n",
                       repl->when.tv_sec, repl->when.tv_nsec);