fix bug: Can not support more than 32 processes

dev
10077240 2019-07-09 11:48:21 +08:00 committed by fengbojiang(姜凤波)
parent 4e27c6abe6
commit 78415de5a0
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++;