From d6b2b821163c29c389438049af381e7b94957c52 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Thu, 4 May 2017 12:18:58 +0200 Subject: [PATCH] fixed shitty ping/request output --- central-manager/lib/local/handler.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/central-manager/lib/local/handler.c b/central-manager/lib/local/handler.c index f4f1e3a..bc049ae 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 =========================================================*/