From 64b1288f74ae3adf9883d07a102ebc503fee070d Mon Sep 17 00:00:00 2001 From: Ji Luo Date: Mon, 3 Aug 2020 19:34:20 +0800 Subject: [PATCH] LF-1894 trusty: fix invalid printf format string Fix Coverity Issue 10473656. Use "%s" instead of "%" to print the function name. Signed-off-by: Ji Luo Change-Id: I3158b2504a2be0330eb982d279811ca88935a902 (cherry picked from commit 4339a489b8f24b35d2e59084e7ce42de27f28461) --- lib/trusty/ql-tipc/rpmb_proxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/trusty/ql-tipc/rpmb_proxy.c b/lib/trusty/ql-tipc/rpmb_proxy.c index 3c9d8ee36d..74ce4b32e8 100644 --- a/lib/trusty/ql-tipc/rpmb_proxy.c +++ b/lib/trusty/ql-tipc/rpmb_proxy.c @@ -252,7 +252,7 @@ static int proxy_handle_rpmb(struct trusty_ipc_chan *chan, if (req->write_size) { if ((req->write_size % MMC_BLOCK_SIZE) != 0) { - trusty_error("%: invalid write size %u\n", __func__, + trusty_error("%s: invalid write size %u\n", __func__, req->write_size); msg->result = STORAGE_ERR_NOT_VALID; goto err_response; -- 2.17.1