diff options
author | Vasant Hegde <hegdevasant@linux.vnet.ibm.com> | 2020-02-10 22:14:24 +0530 |
---|---|---|
committer | Oliver O'Halloran <oohall@gmail.com> | 2020-02-12 15:46:10 +1100 |
commit | c53e33947cd73c490d49fd06b2c6741d4f7562f9 (patch) | |
tree | 37a3c1a7631ded424340eebd280701f96d92a00b | |
parent | b0e024216a3b1d35aa2273b6f64742db7ae49861 (diff) | |
download | skiboot-c53e33947cd73c490d49fd06b2c6741d4f7562f9.zip skiboot-c53e33947cd73c490d49fd06b2c6741d4f7562f9.tar.gz skiboot-c53e33947cd73c490d49fd06b2c6741d4f7562f9.tar.bz2 |
platform: Log error to BMC even if diag data is missing
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>
-rw-r--r-- | core/platform.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/platform.c b/core/platform.c index 2544f0c..97bc7cb 100644 --- a/core/platform.c +++ b/core/platform.c @@ -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"); } |