Skip to content

Commit

Permalink
platform: Log error to BMC even if diag data is missing
Browse files Browse the repository at this point in the history
Also fix "DESC" to ASCII conversion.

Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
  • Loading branch information
Vasant Hegde authored and oohal committed Feb 12, 2020
1 parent b0e0242 commit c53e339
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/platform.c
Expand Up @@ -94,10 +94,10 @@ static int64_t opal_cec_reboot2(uint32_t reboot_type, char *diag)
"OPAL: Reboot requested due to Platform error.");
if (diag) {
/* Add user section "DESC" */
log_add_section(buf, 0x44455350);
log_add_section(buf, 0x44455343);
log_append_data(buf, diag, strlen(diag));
log_commit(buf);
}
log_commit(buf);
} else {
prerror("OPAL: failed to log an error\n");
}
Expand Down

0 comments on commit c53e339

Please sign in to comment.