summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorAymen Sghaier <aymen.sghaier@nxp.com>2018-07-11 18:23:18 +0200
committerAymen Sghaier <aymen.sghaier@nxp.com>2018-07-17 15:09:24 +0200
commit7b80598100baf38562bee10bb4a19c3c834b945b (patch)
treecec9c6a00ec542ac61adaa7214f8ca9b19f8b78b /cmd
parent996329904c0304a7bfbc6cda8287ab93de77870d (diff)
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>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/cmd_fsl_caam.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/cmd_fsl_caam.c b/cmd/cmd_fsl_caam.c
index 07c226ead2..468be549e5 100644
--- a/cmd/cmd_fsl_caam.c
+++ b/cmd/cmd_fsl_caam.c
@@ -1,5 +1,6 @@
/*
* Copyright (C) 2012-2016 Freescale Semiconductor, Inc.
+ * Copyright 2018 NXP
*
*
* See file CREDITS for list of people who contributed to this
@@ -48,7 +49,7 @@ static int do_caam(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
ret = caam_gen_blob((uint32_t)data_addr, (uint32_t)blob_addr, (uint32_t)size);
if(ret != SUCCESS){
- printf("Error during blob decap operation: 0x%d\n",ret);
+ printf("Error during blob encap operation: 0x%x\n", ret);
return 0;
}
@@ -81,7 +82,7 @@ static int do_caam(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
caam_open();
ret = caam_decap_blob((uint32_t)(data_addr), (uint32_t)(blob_addr), (uint32_t)size);
if(ret != SUCCESS)
- printf("Error during blob decap operation: 0x%d\n",ret);
+ printf("Error during blob decap operation: 0x%x\n", ret);
else {
printf("Success, blob decap at SM PAGE1 original data is:\n");
int i = 0;