@ -186,6 +186,7 @@ int RunModeSetLiveCaptureAutoFp(ConfigIfaceParserFunc ConfigParser,
for ( lthread = 0 ; lthread < nlive ; lthread + + ) {
char * live_dev = LiveGetDeviceName ( lthread ) ;
char visual_devname [ 14 ] = " " ;
void * aconf ;
int threads_count ;
@ -204,6 +205,7 @@ int RunModeSetLiveCaptureAutoFp(ConfigIfaceParserFunc ConfigParser,
threads_count = ModThreadsCount ( aconf ) ;
for ( thread = 0 ; thread < threads_count ; thread + + ) {
LiveSafeDeviceName ( live_dev , visual_devname ) ;
snprintf ( tname , sizeof ( tname ) , " %s%s%d " , thread_name ,
live_dev , thread + 1 ) ;
ThreadVars * tv_receive =
@ -314,12 +316,16 @@ static int RunModeSetLiveCaptureWorkersForDevice(ConfigIfaceThreadsCountFunc Mod
/* create the threads */
for ( thread = 0 ; thread < threads_count ; thread + + ) {
char tname [ TM_THREAD_NAME_MAX ] ;
char * n_thread_name = NULL ;
char visual_devname [ 13 ] = " " ;
ThreadVars * tv = NULL ;
TmModule * tm_module = NULL ;
if ( single_mode ) {
snprintf ( tname , sizeof ( tname ) , " %s " , thread_name ) ;
} else {
LiveSafeDeviceName ( live_dev , visual_devname ) ;
SCLogInfo ( " New dev name %s " , visual_devname ) ;
snprintf ( tname , sizeof ( tname ) , " %s%s%d " ,
thread_name , live_dev , thread + 1 ) ;
}