From 73158e675af6c4b568a58cb0cbec9276002f2da4 Mon Sep 17 00:00:00 2001 From: Ji Luo Date: Mon, 3 Aug 2020 22:44:11 +0800 Subject: [PATCH] LF-1897 trusty: Fix extra argument to printf format specifier Fix Coverity Issue 10473659 and 10473672. Pass correct parameter to fix the extra argument issue. Signed-off-by: Ji Luo Change-Id: I72e30250827ad0c48e079a7048bdb40773c17a96 (cherry picked from commit ed061b4a21a24d8deb36561e0bfe2343e2ce45c8) --- lib/trusty/ql-tipc/keymaster.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/trusty/ql-tipc/keymaster.c b/lib/trusty/ql-tipc/keymaster.c index 4880510232..90a34e5d2c 100644 --- a/lib/trusty/ql-tipc/keymaster.c +++ b/lib/trusty/ql-tipc/keymaster.c @@ -247,7 +247,7 @@ static int km_get_version(int32_t *version) rc = km_send_request(KM_GET_VERSION, NULL, 0); if (rc < 0) { - trusty_error("failed to send km version request", rc); + trusty_error("failed (%d) to send km version request", rc); return rc; } @@ -524,7 +524,7 @@ int trusty_get_mppubk(uint8_t *mppubk, uint32_t *size) rc = km_send_request(KM_GET_MPPUBK, NULL, 0); if (rc < 0) { - trusty_error("failed to send km mppubk request\n", rc); + trusty_error("%s: failed (%d) to send km mppubk request\n", __func__, rc); return rc; } -- 2.17.1