Commit db518f87 authored by Matteo Quintiliani's avatar Matteo Quintiliani

Improve debug messages in thread MessageStacker(). Issue #37

parent 19015559
Pipeline #5462 failed with stages
in 1 minute and 47 seconds
......@@ -885,11 +885,11 @@ thr_ret MessageStacker( void *p )
************************************************/
if( ( inkey = GetKey(params_stacker->InRing) ) == -1 )
{
ew2openapi_logit( "et", "ew2openapi: Invalid input ring name <%s>; skipping these ring!\n",
ew2openapi_logit( "et", "ew2openapi: thread MessageStacker() Invalid input ring name <%s>; skipping these ring!\n",
params_stacker->InRing );
error_occurred = 1;
} else {
ew2openapi_logit( "et", "ew2openapi: reading messages from input ring name <%s>.\n",
ew2openapi_logit( "et", "ew2openapi: thread MessageStacker() reading messages from input ring name <%s>.\n",
params_stacker->InRing );
}
......@@ -900,7 +900,7 @@ thr_ret MessageStacker( void *p )
/* Buffer for Read thread: */
if ( ( msgb = (char *) malloc(params_stacker->params->MaxMsgSize+1) ) == NULL )
{
ew2openapi_logit( "et", "%s(%s): error allocating Rawmsg; exiting!\n",
ew2openapi_logit( "et", "%s(%s): thread MessageStacker() error allocating Rawmsg; exiting!\n",
params_stacker->params->cmdname, params_stacker->params->MyModName );
exit( -1 );
}
......@@ -914,6 +914,9 @@ thr_ret MessageStacker( void *p )
while( tport_copyfrom( &InRegion, params_stacker->GetLogo, params_stacker->nLogo, &reclogo,
&recsize, msgb, params_stacker->params->MaxMsgSize, &inseq ) != GET_NONE );
ew2openapi_logit( "et", "%s(%s): thread MessageStacker() starting main loop.\n",
params_stacker->params->cmdname, params_stacker->params->MyModName );
/* Start main service loop for current connection
************************************************/
while( !testlck_flags_term(FLAG_TERM_REQ_MS) && !error_occurred)
......
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