LF-1894 trusty: fix invalid printf format string
authorJi Luo <ji.luo@nxp.com>
Mon, 3 Aug 2020 11:34:20 +0000 (19:34 +0800)
committerJi Luo <ji.luo@nxp.com>
Wed, 19 May 2021 12:01:49 +0000 (20:01 +0800)
Fix Coverity Issue 10473656. Use "%s" instead of "%" to
print the function name.

Signed-off-by: Ji Luo <ji.luo@nxp.com>
Change-Id: I3158b2504a2be0330eb982d279811ca88935a902
(cherry picked from commit 4339a489b8f24b35d2e59084e7ce42de27f28461)

lib/trusty/ql-tipc/rpmb_proxy.c

index 3c9d8ee..74ce4b3 100644 (file)
@@ -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;