fix bug: Can not support more than 32 processes

This commit is contained in:
10077240 2019-07-09 11:48:21 +08:00 committed by fengbojiang(姜凤波)
parent ce3a97c9f6
commit 58f65b59d5
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ parse_lcore_mask(struct ff_config *cfg, const char *coremask)
if ((1 << j) & val) {
proc_lcore[count] = idx;
if (cfg->dpdk.proc_id == count) {
sprintf(buf, "%x", 1<<idx);
sprintf(buf, "%llx", (unsigned long long)1<<idx);
cfg->dpdk.proc_mask = strdup(buf);
}
count++;