crypto/fsl: correct printf() statement.
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 27 Jun 2020 08:08:49 +0000 (10:08 +0200)
committerPriyanka Jain <priyanka.jain@nxp.com>
Mon, 27 Jul 2020 08:46:28 +0000 (14:16 +0530)
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>
drivers/crypto/fsl/jobdesc.c

index 2f35e0c..dbafb5b 100644 (file)
@@ -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;
        }