diff --git a/cr_hsm_util.c b/cr_hsm_util.c index 9686aa7..19b3332 100644 --- a/cr_hsm_util.c +++ b/cr_hsm_util.c @@ -145,7 +145,7 @@ int GetTimestamp( u8 *pYear, u8 *pMonth, u8 *pMday, u8 *pHour, u8 *pMin, u8 *pSe #ifdef USE_HSM ret_code = hsm_get_rtc( &tv.tv_sec ); if( ret_code != CR_GENID_SUCCESS ) { - SetErrorInfo( ret_code, __FILE__, __LINE__ ); + SetErrorInfo( __FUNCTION__, __LINE__ ); return ret_code; } #else // !USE_HSM @@ -225,7 +225,7 @@ int GenerateRandom( u8 *pDst, int length ) ret_code = hsm_generate_random( pDst, CR_RANDOM_LENGTH ); if ( ret_code != CR_GENID_SUCCESS ) { - SetErrorInfo( CR_GENID_ERROR_ECDSA_VERIFY, __FILE__, __LINE__ ); + SetErrorInfo( __FUNCTION__, __LINE__ ); } #else // !USE_HSM int i;