Commit b964b6ec authored by Benoit Steiner's avatar Benoit Steiner

Removed somme debug printf

parent 666665f0
......@@ -29,6 +29,8 @@
/* Used to communicate with the manager thread */
extern struct s_manager manager;
/* Connection state */
extern int iConnectionState;
extern pthread_mutex_t ConnectionLock;
......@@ -47,8 +49,8 @@ int WarnSender(struct s_Sender* pssSender, struct s_Request* psrJob)
/* Push the request in the manager FIFO */
iRc = FifoPush(pssSender->psfWaitingAnswers, psrJob);
printf ("Push -> %d\n", iRc);
printf ("Signal sent: %d\n", psrJob->iNextStep);
//printf ("Push -> %d\n", iRc);
//printf ("Signal sent: %d\n", psrJob->iNextStep);
return iRc;
}
......@@ -191,7 +193,6 @@ int Answer(struct s_Sender *share)
/* Convert the msg to ascii */
iRc = ParseAnswer(psrAnswer, buff);
printf ("Answer Parsed: %s\n", buff);
/* Message is no more used */
free (psrAnswer);
......@@ -203,7 +204,6 @@ int Answer(struct s_Sender *share)
iConnectionOK = send(share->iSockFd, buff, strlen(buff), 0);
/* Check what we sended */
if (iConnectionOK <= 0)
{ /* Connection lost : can't do anything else as waiting for a new connexion */
iRc = errno;
......@@ -237,14 +237,14 @@ void* SenderThread (void* arg)
/* Get the sockfd on which one must send */
iRc = WaitSocket(sender);
printf ("socket get\n");
//printf ("socket get\n");
/* Send the bridge answers to VLANserver */
if (!iRc)
{
iRc = Answer(sender);
printf ("sending\n");
//printf ("sending\n");
/* Handle connection losts if needed */
if (iRc)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment