app/procinfo: fix compilation with -O3
When using EXTRA_CFLAGS="-g -O3" in the build the -O3 causes compiler warnings. Using Ubuntu 17.04 gcc compiler. Signed-off-by: Keith Wiles <keith.wiles@intel.com> Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
This commit is contained in:
parent
d8bc68bcd2
commit
535e850aed
@ -524,7 +524,9 @@ nic_xstats_display(uint8_t port_id)
|
||||
sprintf(buf, "PUTVAL %s/dpdkstat-port.%u/%s-%s N:%"
|
||||
PRIu64"\n", host_id, port_id, counter_type,
|
||||
xstats_names[i].name, values[i]);
|
||||
write(stdout_fd, buf, strlen(buf));
|
||||
ret = write(stdout_fd, buf, strlen(buf));
|
||||
if (ret < 0)
|
||||
goto err;
|
||||
} else {
|
||||
printf("%s: %"PRIu64"\n", xstats_names[i].name,
|
||||
values[i]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user