numam-dpdk/app/test-flow-perf
David Marchand 5fc2eece8d app/flow-perf: fix build with GCC 12
GCC 12 raises the following warning:

../app/test-flow-perf/main.c: In function ‘start_forwarding’:
../app/test-flow-perf/main.c:1737:28: error: ‘sprintf’ may write a
    terminating nul past the end of the destination
    [-Werror=format-overflow=]
 1737 |         sprintf(p[i++], "%d", (int)n);
      |                            ^
In function ‘pretty_number’,
    inlined from ‘packet_per_second_stats’ at
        ../app/test-flow-perf/main.c:1792:4,
    inlined from ‘start_forwarding’ at
        ../app/test-flow-perf/main.c:1831:3:
[...]

We can simplify this code and rely on libc integer formatting via
this system locales.

Bugzilla ID: 856
Cc: stable@dpdk.org

Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
2022-06-15 10:21:19 +02:00
..
actions_gen.c app/flow-perf: add destination ports parameter 2021-11-05 10:58:25 +01:00
actions_gen.h app/flow-perf: add destination ports parameter 2021-11-05 10:58:25 +01:00
config.h fix spelling in comments and strings 2022-01-11 12:16:53 +01:00
flow_gen.c app/flow-perf: add random priority option 2021-11-08 10:33:08 +01:00
flow_gen.h app/flow-perf: add random priority option 2021-11-08 10:33:08 +01:00
items_gen.c app/flow-perf: fix IPv6 source address increment 2021-04-12 16:26:25 +02:00
items_gen.h app/flow-perf: add multi-core rule insertion and deletion 2021-01-07 15:14:02 +01:00
main.c app/flow-perf: fix build with GCC 12 2022-06-15 10:21:19 +02:00
meson.build devtools: forbid indent with tabs in Meson 2021-11-02 19:25:30 +01:00