logging: Making format_table static const

Add static const to format_table.

Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
Krzysztof Chruscinski 2022-02-24 17:16:23 +01:00 committed by Marti Bolivar
commit b74397db13

View file

@ -60,7 +60,7 @@ LOG_MODULE_REGISTER(log);
#endif
#ifndef CONFIG_LOG1
log_format_func_t format_table[] = {
static const log_format_func_t format_table[] = {
[LOG_OUTPUT_TEXT] = log_output_msg2_process,
[LOG_OUTPUT_SYST] = IS_ENABLED(CONFIG_LOG_MIPI_SYST_ENABLE) ?
log_output_msg2_syst_process : NULL,