diff --git a/central-manager/lib/local/handler.c b/central-manager/lib/local/handler.c index b368f99..9901d72 100644 --- a/central-manager/lib/local/handler.c +++ b/central-manager/lib/local/handler.c @@ -382,7 +382,6 @@ void* manageCtrlTerm(void* THREADABLE_ARGS){ count += last; last = sizeof(int); memcpy(&request.update.cap, buffer+count, last ); count += last; last = sizeof(int); memcpy(&request.update.spd, buffer+count, last ); - printf("{udp_cterm}{com}(%d) Plane req { flags: %d; plane: #%s { z=%d; cap=%d; speed=%d } }\n", index, request.flags, request.update.code, ntohl(request.update.z), ntohl(request.update.cap), ntohl(request.update.spd)); /* [3] Gestion de la requête @@ -392,10 +391,11 @@ void* manageCtrlTerm(void* THREADABLE_ARGS){ fbk = request.flags&TERMREQ_FBK; if( !( update || fbk ) ){ send(arg->socket, "\x00\0", sizeof(char)*2, 0); - printf("{udp_cterm}{com}(%d) Empty flag (might be a ping), passing\n", index); + printf("{udp_cterm}{com}(%d) Ping received\n", index); continue; } + printf("{udp_cterm}{com}(%d) Plane req { flags: %d; plane: #%s { z=%d; cap=%d; speed=%d } }\n", index, request.flags, request.update.code, ntohl(request.update.z), ntohl(request.update.cap), ntohl(request.update.spd)); /* [4] Gestion de la mise à jour de valeurs =========================================================*/