git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
eal: fix usage of printf-like functions
[dpdk.git]
/
app
/
test
/
test_eal_flags.c
diff --git
a/app/test/test_eal_flags.c
b/app/test/test_eal_flags.c
index
ea4a567
..
2401556
100644
(file)
--- a/
app/test/test_eal_flags.c
+++ b/
app/test/test_eal_flags.c
@@
-268,7
+268,8
@@
get_current_prefix(char * prefix, int size)
/* copy string all the way from second char up to start of _config */
rte_snprintf(prefix, size, "%.*s",
- strnlen(buf, sizeof(buf)) - sizeof("_config"), &buf[1]);
+ (int)(strnlen(buf, sizeof(buf)) - sizeof("_config")),
+ &buf[1]);
return prefix;
}