diff options
author | Yilun Lin <yllin@chromium.org> | 2019-10-02 14:05:38 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-10-04 12:20:25 +0000 |
commit | 99d0d6e76c6c9e566a664bdb76f2e3c6db221cbd (patch) | |
tree | 42de472b51bb38265f21eb29928424a2bd6450c4 /common/main.c | |
parent | 5f7e4c337dae601208f308efba15ad6d9ffbe788 (diff) | |
download | chrome-ec-99d0d6e76c6c9e566a664bdb76f2e3c6db221cbd.tar.gz |
kukui_scp: support CONFIG_PRESERVE_LOGS
Enable CONFIG_PRESERVE_LOGS to gather more information
when SCP is crashed.
TEST=1. crash scp
2. restart scp
3. restart timberslide to ensure the logs are fetched
4. see that untransmitted logs are fetched into /var/log/cros_scp.log
BUG=b:140220117
BRANCH=none
Change-Id: I12635afa6c92fd8fa9cc889ce75999f855f18db0
Signed-off-by: Yilun Lin <yllin@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1833943
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Diffstat (limited to 'common/main.c')
-rw-r--r-- | common/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/main.c b/common/main.c index 90fa5df632..d7a3935b2f 100644 --- a/common/main.c +++ b/common/main.c @@ -52,7 +52,8 @@ test_mockable __keep int main(void) * reset logs because we need to verify if the values remain * the same after every EC reset. */ - init_reset_log(); + if (IS_ENABLED(CONFIG_CMD_AP_RESET_LOG)) + init_reset_log(); } /* |