Skip to content

Commit 678cef7

Browse files
dumpheader: Add default serial number in the header
Whenever the serialNo is empty, use a default serial number (all zeroes) so that scripts/apps that decode the dump header would not throw errors. Verified that the default serial number is utilized. Change-Id: I0d9a8cc9e257ed0a852aaca5e6cb0c1833abd41e Signed-off-by: Gopichand Paturi <[email protected]>
1 parent 4978f0a commit 678cef7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dump/tools/common/include/gendumpheader

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,10 @@ function plat_dump_header() {
555555

556556
#main function
557557
function gen_header_package() {
558+
if [ -z "$serialNo" ]; then
559+
serialNo="0000000"
560+
fi
561+
558562
dump_file_entry
559563
dump_section_entry
560564
if [ "$dump_type" = "$OP_DUMP" ]; then

0 commit comments

Comments
 (0)