mirror of
https://github.com/openharmony/drivers_framework.git
synced 2026-07-20 19:27:49 -04:00
Description:fix hcs parse inaccurate log
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user