Skip to content

Commit da6872c

Browse files
author
Shaik Salauddin
committed
Signed-off-by: Shaik Salauddin <[email protected]>
Warning out message instead of erroring incase cdo length is zero
1 parent 7a2efe2 commit da6872c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

versal/src/imageheadertable-versal.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2118,7 +2118,7 @@ void VersalImageHeader::ParseSlaveSlrConfigCdos(BootImage& bi, std::vector<std::
21182118
}
21192119
else
21202120
{
2121-
LOG_ERROR("Incorrect CDO length read from : %s", cdo_filename);
2121+
LOG_WARNING("Incorrect CDO length read from : %s", cdo_filename);
21222122
}
21232123

21242124
total_cdo_length += (actual_cdo_size);
@@ -2351,7 +2351,7 @@ void VersalImageHeader::ParseCdos(BootImage& bi, std::vector<std::string> fileli
23512351
}
23522352
else
23532353
{
2354-
LOG_ERROR("Incorrect cdo length read from : %s", cdo_filename);
2354+
LOG_WARNING("Incorrect cdo length read from : %s", cdo_filename);
23552355
}
23562356

23572357
total_cdo_length += (actual_cdo_size);
@@ -3336,7 +3336,7 @@ void VersalImageHeader::CreateSlrBootPartition(BootImage& bi)
33363336
}
33373337
else
33383338
{
3339-
LOG_ERROR("Incorrect CDO length read from : %s", cdo_filename);
3339+
LOG_WARNING("Incorrect CDO length read from : %s", cdo_filename);
33403340
}
33413341

33423342
if (IsCdoCmdEndFound(cdo_buffer, file_size))
@@ -3714,7 +3714,7 @@ void VersalImageHeader::CreateSlrConfigPartition(BootImage& bi)
37143714
}
37153715
else
37163716
{
3717-
LOG_ERROR("Incorrect CDO length read from : %s", cdo_filename);
3717+
LOG_WARNING("Incorrect CDO length read from : %s", cdo_filename);
37183718
}
37193719
p_offset += (master_chunk_size);
37203720
(*slr_info)->offset += (master_chunk_size);

0 commit comments

Comments
 (0)