aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-bsp/imx-test/imx-test/0001-pxp-test-Fix-format-security-error.patch
blob: 1fe997d7957812afa5b5925a60cc8cdc3835ac0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
From 97a55fe4b1e02b9a4992517234a8b24f8f9f0009 Mon Sep 17 00:00:00 2001
From: "i.MX Yocto Project Build" <imx.build@nxp.com>
Date: Mon, 27 Jan 2020 13:43:47 -0600
Subject: [PATCH] pxp test: Fix format-security error

| pxp_lib_test/pxp_test.c: In function 'main':
| pxp_lib_test/pxp_test.c:541:2: error: format not a string literal and no format arguments [-Werror=format-security]
|   541 |  printf(usage);
|       |  ^~~~~~

Upstream-Status: Pending

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
---
 test/pxp_lib_test/pxp_test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/pxp_lib_test/pxp_test.c b/test/pxp_lib_test/pxp_test.c
index 107198f..72c984d 100644
--- a/test/pxp_lib_test/pxp_test.c
+++ b/test/pxp_lib_test/pxp_test.c
@@ -538,6 +538,6 @@ int main(int argc, char *argv[])
 
 	return 0;
 usage:
-	printf(usage);
+	printf("%s", usage);
 	return -1;
 }
-- 
2.17.1