Skip to content

usb: cdc_acm: log related warning promoted to error #53147

@cfriedt

Description

@cfriedt

Describe the bug
It seems that a cdc_acm logging feature is triggering a warning that gets promoted to error in twister.

To Reproduce
Steps to reproduce the behavior:

  1. twister -i -p degu_evk -s zephyr/tests/posix/common/portability.posix.common.tls.newlib
  2. See error

Expected behavior
The test should build and pass.

Impact
What impact does this issue have on your progress (e.g., annoyance, showstopper)

Logs and console output

/__w/zephyr/zephyr/subsys/usb/device/class/cdc_acm.c
/__w/zephyr/zephyr/subsys/usb/device/class/cdc_acm.c:63:2: error: #warning "USB_CDC_ACM_LOG_LEVEL forced to LOG_LEVEL_NONE" [-Werror=cpp]
   63 | #warning "USB_CDC_ACM_LOG_LEVEL forced to LOG_LEVEL_NONE"
      |  ^~~~~~~
cc1: all warnings being treated as errors

Environment (please complete the following information):

  • OS: (e.g. Linux, MacOS, Windows): any
  • Toolchain (e.g Zephyr SDK, ...): Zephyr SDK 0.15.2
  • Commit SHA or Version used: 1173db6

Additional context
It's likely that this has to do with a recent change in logging cc @nordic-krch

This is currently failing in #52977 even after a rebase.

Metadata

Metadata

Assignees

Labels

area: USBUniversal Serial BusbugThe issue is a bug, or the PR is fixing a bugpriority: mediumMedium impact/importance bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions