Skip to content

Commit

Permalink
dumpheader: Add default serial number in the header
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
gcpin committed Nov 5, 2024
1 parent 4978f0a commit 678cef7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dump/tools/common/include/gendumpheader
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,10 @@ function plat_dump_header() {

#main function
function gen_header_package() {
if [ -z "$serialNo" ]; then
serialNo="0000000"
fi

dump_file_entry
dump_section_entry
if [ "$dump_type" = "$OP_DUMP" ]; then
Expand Down

0 comments on commit 678cef7

Please sign in to comment.