forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mgmt: ec_host_cmd: add logging system
Add a native way to log Host Command communication. Use Zephyr logging system to do it. Use debug and normal levels. Signed-off-by: Dawid Niedzwiecki <dawidn@google.com>
- Loading branch information
1 parent
159f56d
commit c8c149d
Showing
4 changed files
with
75 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Host command logging configs | ||
|
||
# Copyright (c) 2023 Google LLC | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
config EC_HOST_CMD_LOG_DBG_BUFFERS | ||
bool "Log full params and response buffers in debug log level" | ||
depends on EC_HC_LOG_LEVEL_DBG | ||
help | ||
Every command is logged with the debug logging level. Use this config | ||
to decide, if full reqest and response buffers are logged alongside | ||
other command parameters. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters