Skip to content

Commit

Permalink
CHROMIUM: Add #line to i/zephyr/logging/log_msg.h
Browse files Browse the repository at this point in the history
Work around coreboot GCC preprocessor bug.

BUG=b:272518464
TEST=./twister -c -C --toolchain host

Change-Id: I4ad9f4f6da9c4d04fdbaabee40902497dbfdc19d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/5570620
Commit-Queue: Aaron Massey <aaronmassey@google.com>
Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
Auto-Submit: Jeremy Bettis <jbettis@chromium.org>
Reviewed-by: Aaron Massey <aaronmassey@google.com>
Tested-by: Jeremy Bettis <jbettis@chromium.org>
  • Loading branch information
jeremybettis authored and Chromeos LUCI committed May 29, 2024
1 parent 3e43586 commit 47123e6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions include/zephyr/logging/log_msg.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
* SPDX-License-Identifier: Apache-2.0
*/

/*
* TODO(b/272518464): Work around coreboot GCC preprocessor bug.
* #line marks the *next* line, so it is off by one.
*/
#line 12

#ifndef ZEPHYR_INCLUDE_LOGGING_LOG_MSG_H_
#define ZEPHYR_INCLUDE_LOGGING_LOG_MSG_H_

Expand All @@ -24,6 +30,12 @@
#include <alloca.h>
#endif

/*
* TODO(b/272518464): Work around coreboot GCC preprocessor bug.
* #line marks the *next* line, so it is off by one.
*/
#line 38

#ifdef __cplusplus
extern "C" {
#endif
Expand Down

0 comments on commit 47123e6

Please sign in to comment.