Commit 8877fda60d47cd1444f480a3486234ad76a547bb
Committed by
Ye Li
1 parent
6427f23dce
Exists in
smarc_8mq_lf_v2020.04
and in
4 other branches
MLK-18703: crypto: caam: Fix typo for caam blob commands
This fix a wrong trace error while executing caam genlob command. Signed-off-by: Aymen Sghaier <aymen.sghaier@nxp.com> (cherry picked from commit 7b80598100baf38562bee10bb4a19c3c834b945b) (cherry picked from commit 878d0d145482683bd7d3b89f3cbd74878b5d1064)
Showing 1 changed file with 3 additions and 2 deletions Side-by-side Diff
cmd/cmd_fsl_caam.c
1 | 1 | /* |
2 | 2 | * Copyright (C) 2012-2016 Freescale Semiconductor, Inc. |
3 | + * Copyright 2018 NXP | |
3 | 4 | * |
4 | 5 | * |
5 | 6 | * See file CREDITS for list of people who contributed to this |
... | ... | @@ -48,7 +49,7 @@ |
48 | 49 | ret = caam_gen_blob((uint32_t)data_addr, (uint32_t)blob_addr, (uint32_t)size); |
49 | 50 | |
50 | 51 | if(ret != SUCCESS){ |
51 | - printf("Error during blob decap operation: 0x%d\n",ret); | |
52 | + printf("Error during blob encap operation: 0x%x\n", ret); | |
52 | 53 | return 0; |
53 | 54 | } |
54 | 55 | |
... | ... | @@ -81,7 +82,7 @@ |
81 | 82 | caam_open(); |
82 | 83 | ret = caam_decap_blob((uint32_t)(data_addr), (uint32_t)(blob_addr), (uint32_t)size); |
83 | 84 | if(ret != SUCCESS) |
84 | - printf("Error during blob decap operation: 0x%d\n",ret); | |
85 | + printf("Error during blob decap operation: 0x%x\n", ret); | |
85 | 86 | else { |
86 | 87 | printf("Success, blob decap at SM PAGE1 original data is:\n"); |
87 | 88 | int i = 0; |