X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Ftest%2Ftest_hash_perf.c;h=5648fce023849ad7892c02196e766580b0120a77;hb=8d53e9f3c6001dcb2865f6e894da5b54e1418f88;hp=52521118036d484a703ad48f69309cdec37db71b;hpb=e2bea7436061ca2e7e14bfcfdc5870f2555c3965;p=deb_dpdk.git diff --git a/test/test/test_hash_perf.c b/test/test/test_hash_perf.c index 52521118..5648fce0 100644 --- 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 */ - 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 - 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)