From 15e943ab8b2fcac3b20dd839e0e5c7d3d69f596c Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Wed, 27 Nov 2019 19:08:55 +0100 Subject: [PATCH] simtrace2-sniff.c: fix printf usage Fixes: simtrace2-sniff.c:113:4: error: format not a string literal and no format arguments [-Werror=format-security] printf(flag_meanings[i].str); Change-Id: I9793c680f070e724ce89272e9e489963c7516d52 --- host/src/simtrace2-sniff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host/src/simtrace2-sniff.c b/host/src/simtrace2-sniff.c index 7e8e5eb8..b2ce4a00 100644 --- a/host/src/simtrace2-sniff.c +++ b/host/src/simtrace2-sniff.c @@ -110,7 +110,7 @@ static void print_flags(const struct value_string* flag_meanings, uint32_t nb_fl uint32_t i; for (i = 0; i < nb_flags; i++) { if (flags & flag_meanings[i].value) { - printf(flag_meanings[i].str); + printf("%s", flag_meanings[i].str); flags &= ~flag_meanings[i].value; if (flags) { printf(", ");