Code Review
/
deb_dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
New upstream version 18.11.2
[deb_dpdk.git]
/
test
/
test
/
test_hash_perf.c
diff --git
a/test/test/test_hash_perf.c
b/test/test/test_hash_perf.c
index
5252111
..
5648fce
100644
(file)
--- a/
test/test/test_hash_perf.c
+++ b/
test/test/test_hash_perf.c
@@
-85,9
+85,11
@@
create_table(unsigned int with_data, unsigned int table_index,
if (with_data)
/* Table will store 8-byte data */
if (with_data)
/* Table will store 8-byte data */
- sprintf(name, "test_hash%d_data", hashtest_key_lens[table_index]);
+ snprintf(name, sizeof(name), "test_hash%u_data",
+ hashtest_key_lens[table_index]);
else
else
- sprintf(name, "test_hash%d", hashtest_key_lens[table_index]);
+ snprintf(name, sizeof(name), "test_hash%u",
+ hashtest_key_lens[table_index]);
if (with_locks)
if (with_locks)