aboutsummaryrefslogtreecommitdiff
path: root/drivers/crypto
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2020-06-27 10:08:49 +0200
committerPriyanka Jain <priyanka.jain@nxp.com>2020-07-27 14:16:28 +0530
commit32e4b65d9646cfe5b2d4796cc19f430ad6f48ec8 (patch)
tree8754bd575f63060791bc21f1bdeb6022bf3d80aa /drivers/crypto
parentc5f8943965b052d48ef0b66cc860b4627ac7391c (diff)
downloadu-boot-32e4b65d9646cfe5b2d4796cc19f430ad6f48ec8.zip
u-boot-32e4b65d9646cfe5b2d4796cc19f430ad6f48ec8.tar.gz
u-boot-32e4b65d9646cfe5b2d4796cc19f430ad6f48ec8.tar.bz2
crypto/fsl: correct printf() statement.
The sequence of arguments should match the format string. For printing unsigned numbers we should use %u. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
Diffstat (limited to 'drivers/crypto')
-rw-r--r--drivers/crypto/fsl/jobdesc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/crypto/fsl/jobdesc.c b/drivers/crypto/fsl/jobdesc.c
index 2f35e0c..dbafb5b 100644
--- a/drivers/crypto/fsl/jobdesc.c
+++ b/drivers/crypto/fsl/jobdesc.c
@@ -102,8 +102,8 @@ int caam_page_alloc(uint8_t page_num, uint8_t partition_num)
/* if the page is not owned => problem */
if ((temp_reg & SMCSJR_PO) != PAGE_OWNED) {
- printf("Allocation of page %d in partition %d failed 0x%X\n",
- temp_reg, page_num, partition_num);
+ printf("Allocation of page %u in partition %u failed 0x%X\n",
+ page_num, partition_num, temp_reg);
return ERROR_IN_PAGE_ALLOC;
}