diff options
author | Boris Mittelberg <bmbm@google.com> | 2022-10-24 17:21:32 -0700 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-10-26 23:57:39 +0000 |
commit | 0a031be7f2ca6b9f11f0085cb22960d7780ee4a4 (patch) | |
tree | a9facda1b1f55a7105d040995664bf2011542bfd /include | |
parent | e0c62a6524a691b01c0454559af6f678169a6c24 (diff) | |
download | chrome-ec-0a031be7f2ca6b9f11f0085cb22960d7780ee4a4.tar.gz |
panic output: remove assert
Remove assert to avoid nested panic while getting panic info.
Truncate panic data to maximal supported size.
BRANCH=none
BUG=b:254485444
TEST=./twister -p native_posix -p unit_testing --coverage
Signed-off-by: Boris Mittelberg <bmbm@google.com>
Change-Id: Ibcf3c0244b159578b6c51c80eec23453522059df
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3975601
Reviewed-by: Ricardo Quesada <ricardoq@chromium.org>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/panic.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/panic.h b/include/panic.h index d74ed34063..8eda475f2a 100644 --- a/include/panic.h +++ b/include/panic.h @@ -152,6 +152,8 @@ enum panic_arch { #define PANIC_DATA_FLAG_OLD_HOSTCMD BIT(2) /* Already reported via host event */ #define PANIC_DATA_FLAG_OLD_HOSTEVENT BIT(3) +/* The data was truncated to fit panic info host cmd */ +#define PANIC_DATA_FLAG_TRUNCATED BIT(4) /** * Write a string to the panic reporting device |