diff --git a/src/runmode-erf-file.c b/src/runmode-erf-file.c index fca4bc9c84..31e8d26391 100644 --- a/src/runmode-erf-file.c +++ b/src/runmode-erf-file.c @@ -185,8 +185,8 @@ int RunModeErfFileAutoFp(void) } for (thread = 0; thread < (uint16_t)thread_max; thread++) { - snprintf(tname, sizeof(tname), "%s#%02u", thread_name_workers, thread+1); - snprintf(qname, sizeof(qname), "pickup%u", thread+1); + snprintf(tname, sizeof(tname), "%s#%02d", thread_name_workers, thread + 1); + snprintf(qname, sizeof(qname), "pickup%d", thread + 1); SCLogDebug("tname %s, qname %s", tname, qname); diff --git a/src/runmode-pcap-file.c b/src/runmode-pcap-file.c index 371fef8dd9..1961b1d809 100644 --- a/src/runmode-pcap-file.c +++ b/src/runmode-pcap-file.c @@ -198,8 +198,8 @@ int RunModeFilePcapAutoFp(void) } for (thread = 0; thread < (uint16_t)thread_max; thread++) { - snprintf(tname, sizeof(tname), "%s#%02u", thread_name_workers, thread+1); - snprintf(qname, sizeof(qname), "pickup%u", thread+1); + snprintf(tname, sizeof(tname), "%s#%02d", thread_name_workers, thread + 1); + snprintf(qname, sizeof(qname), "pickup%d", thread + 1); SCLogDebug("tname %s, qname %s", tname, qname); SCLogDebug("Assigning %s affinity to cpu %u", tname, cpu); diff --git a/src/util-runmodes.c b/src/util-runmodes.c index 2e1042bf18..79f19ea03e 100644 --- a/src/util-runmodes.c +++ b/src/util-runmodes.c @@ -207,8 +207,8 @@ int RunModeSetLiveCaptureAutoFp(ConfigIfaceParserFunc ConfigParser, } for (int thread = 0; thread < thread_max; thread++) { - snprintf(tname, sizeof(tname), "%s#%02u", thread_name_workers, thread+1); - snprintf(qname, sizeof(qname), "pickup%u", thread+1); + snprintf(tname, sizeof(tname), "%s#%02d", thread_name_workers, thread + 1); + snprintf(qname, sizeof(qname), "pickup%d", thread + 1); SCLogDebug("tname %s, qname %s", tname, qname); @@ -452,9 +452,9 @@ int RunModeSetIPSAutoFp(ConfigIPSParserFunc ConfigParser, } for (int thread = 0; thread < thread_max; thread++) { - snprintf(tname, sizeof(tname), "%s#%02u", thread_name_workers, thread+1); + snprintf(tname, sizeof(tname), "%s#%02d", thread_name_workers, thread + 1); char qname[TM_QUEUE_NAME_MAX]; - snprintf(qname, sizeof(qname), "pickup%u", thread+1); + snprintf(qname, sizeof(qname), "pickup%d", thread + 1); SCLogDebug("tname %s, qname %s", tname, qname);