Skip to content

[BUG] Logger output sometimes combines .c filename with .h line number #4388

@cujomalainey

Description

@cujomalainey

Describe the bug
comp_over/underrun seem to generate bad meta data about themselves. See the below log
[ 69363746.827066] ( 17.343750) c0 dai 11.67 src/audio/dai.c:704 ERROR comp_overrun(): sink->free = 768, copy_bytes = 0
that was generated by a call to comp_overrun at src/audio/dai.c:1073 the actual log line comes from src/include/sof/audio/component.h:704 Notice how log grabbed the path of the former and line number of the latter, leading to a really confusing lookup

To Reproduce
log comp_under/overrun?

Reproduction Rate
100%

Expected behavior
file path would point to proper log location (in this case the header)

Impact
debugging annoyance

Environment

  1. Branch name and commit hash of the 2 repositories: sof (firmware/topology) and linux (kernel driver).
    • Kernel: N/A
    • SOF: tgl-13-drop-stable
  2. Name of the topology file
    • Topology: N/A
  3. Name of the platform(s) on which the bug is observed.
    • Platform: TGL

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low-impact bugs or featuresbugSomething isn't working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions