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>
This commit is contained in:
Aymen Sghaier 2018-07-11 18:23:18 +02:00
parent 996329904c
commit 7b80598100
1 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,6 @@
/* /*
* Copyright (C) 2012-2016 Freescale Semiconductor, Inc. * Copyright (C) 2012-2016 Freescale Semiconductor, Inc.
* Copyright 2018 NXP
* *
* *
* See file CREDITS for list of people who contributed to this * 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); ret = caam_gen_blob((uint32_t)data_addr, (uint32_t)blob_addr, (uint32_t)size);
if(ret != SUCCESS){ 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; return 0;
} }
@ -81,7 +82,7 @@ static int do_caam(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
caam_open(); caam_open();
ret = caam_decap_blob((uint32_t)(data_addr), (uint32_t)(blob_addr), (uint32_t)size); ret = caam_decap_blob((uint32_t)(data_addr), (uint32_t)(blob_addr), (uint32_t)size);
if(ret != SUCCESS) if(ret != SUCCESS)
printf("Error during blob decap operation: 0x%d\n",ret); printf("Error during blob decap operation: 0x%x\n", ret);
else { else {
printf("Success, blob decap at SM PAGE1 original data is:\n"); printf("Success, blob decap at SM PAGE1 original data is:\n");
int i = 0; int i = 0;