File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
dump/tools/common/include Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -52,21 +52,18 @@ function add_null() {
52
52
53
53
# Function to add Originator details to dump header
54
54
function add_originator_details() {
55
- if [ -z " $ORIGINATOR_TYPE " ]; then
56
- add_null 4
55
+ if [ -z " $ORIGINATOR_TYPE " ] || [ -z " $ORIGINATOR_ID " ] ; then
56
+ add_null 36
57
57
return
58
58
fi
59
+
59
60
len=${# ORIGINATOR_TYPE}
60
61
nulltoadd=$(( SIZE_4 - len ))
61
62
printf ' %s' " $ORIGINATOR_TYPE " >> " $FILE "
62
63
if [ " $nulltoadd " -gt 0 ]; then
63
64
add_null " $nulltoadd "
64
65
fi
65
66
66
- if [ -z " $ORIGINATOR_ID " ]; then
67
- add_null 32
68
- return
69
- fi
70
67
len=${# ORIGINATOR_ID}
71
68
nulltoadd=$(( SIZE_32 - len ))
72
69
printf ' %s' " $ORIGINATOR_ID " >> " $FILE "
@@ -573,4 +570,4 @@ function gen_header_package() {
573
570
get_bmc_model_serial_number
574
571
575
572
# Run gen_header_package
576
- gen_header_package
573
+ gen_header_package
You can’t perform that action at this time.
0 commit comments