From 3acd24943ed13a458b8e28ac917053f6928ba53d Mon Sep 17 00:00:00 2001 From: xibuwuming Date: Thu, 17 Sep 2020 10:30:15 +0800 Subject: [PATCH] !4 fix hcs parse inaccurate log Merge pull request !4 from xibuwuming/master --- ability/config/hcs_parser/src/hcs_blob_if.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ability/config/hcs_parser/src/hcs_blob_if.c b/ability/config/hcs_parser/src/hcs_blob_if.c index f4159e0f..22db6fca 100755 --- a/ability/config/hcs_parser/src/hcs_blob_if.c +++ b/ability/config/hcs_parser/src/hcs_blob_if.c @@ -197,13 +197,11 @@ static bool CheckHcsBlobLength(const char *start, uint32_t length, struct HbcHea if (header->totalSize >= 0) { blobLength = HBC_HEADER_LENGTH + header->totalSize; g_byteAlign = false; - HDF_LOGE("%s: the blobLength: %u, byteAlign: %d, totalSize: %d", __func__, blobLength, - g_byteAlign, header->totalSize); + HDF_LOGI("%s: the blobLength: %u, byteAlign: %d", __func__, blobLength, g_byteAlign); } else { blobLength = HBC_HEADER_LENGTH - header->totalSize; g_byteAlign = true; - HDF_LOGE("%s: the blobLength: %u, byteAlign: %d, totalSize: %d", __func__, blobLength, - g_byteAlign, header->totalSize); + HDF_LOGI("%s: the blobLength: %u, byteAlign: %d", __func__, blobLength, g_byteAlign); } if ((length != blobLength) || (blobLength < minLength)) { HDF_LOGE("%s failed, Hcsblob file length is %u, But the length of calculation is %u",