Skip to content

Commit 37305fa

Browse files
helen741nashif
authored andcommitted
logging: mipi_syst: Add CONFIG_LOG_MIPI_SYST_DISABLE_TIMESTAMP
This adds user configurable CONFIG_LOG_MIPI_SYST_DISABLE_TIMESTAMP Kconfig option to use it for macro MIPI_SYST_PCFG_ENABLE_TIMESTAMP. Moving macro definition of MIPI_SYST_PCFG_ENABLE_TIMESTAMP from mipi-sys-t library to platform.h which defaulted to undef. CONFIG_LOG_MIPI_SYST_DISABLE_TIMESTAMP gives flexibility to users when needn't use mipi-sys-t protocol timestamp. Signed-off-by: Fang Huang <[email protected]>
1 parent 7ef10d0 commit 37305fa

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

subsys/logging/Kconfig.formatting

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ config LOG_MIPI_SYST_USE_CATALOG
3838
help
3939
Use MIPI Sys-T Catalog for logging instead of plain text.
4040

41+
config LOG_MIPI_SYST_DISABLE_TIMESTAMP
42+
bool "Disable MIPI Sys-T protocol timestamp"
43+
help
44+
Remove the timestamp from the MIPI Sys-T protocol.
45+
4146
config LOG_MIPI_SYST_CATALOG_ARGS_BUFFER_SIZE
4247
int "Size of temporary arguments buffer when using Sys-T Catalog"
4348
depends on LOG_MIPI_SYST_USE_CATALOG

subsys/logging/mipi_syst/platform.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2019 Intel Corporation
2+
* Copyright (c) 2019 - 2023 Intel Corporation
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
@@ -13,6 +13,10 @@
1313
extern "C" {
1414
#endif
1515

16+
#if defined(CONFIG_LOG_MIPI_SYST_DISABLE_TIMESTAMP)
17+
#undef MIPI_SYST_PCFG_ENABLE_TIMESTAMP
18+
#endif
19+
1620
#define MIPI_SYST_PCFG_PRINTF_ARGBUF_SIZE CONFIG_LOG_MIPI_SYST_ARGS_BUFFER_SIZE
1721

1822
#if defined(CONFIG_MIPI_SYST_STP)

0 commit comments

Comments
 (0)