Skip to content

sof: trace: Do not have empty trace macros when traces are off - #2022

Merged
tlauda merged 2 commits into
thesofproject:masterfrom
paulstelian97:topic/trace_macros
Oct 30, 2019
Merged

tlauda merged 2 commits into
thesofproject:masterfrom
paulstelian97:topic/trace_macros

Conversation

@paulstelian97

Copy link
Copy Markdown
Collaborator

This commit allows code such as:

if (ret < 0)
  trace_error("error: %d", ret);
return ret;

to work properly.

Fixes #1999

Paul Olaru added 2 commits October 29, 2019 16:31
This commit allows code such as:

if (ret < 0)
  trace_error("error: %d", ret);
return ret;

to work properly.

Signed-off-by: Paul Olaru <paul.olaru@nxp.com>
This allows using them in if() expressions similarly to the previous
commit without any breakage.

Signed-off-by: Paul Olaru <paul.olaru@nxp.com>
@paulstelian97 paulstelian97 changed the title Topic/trace macros sof: trace: Do not have empty trace macros when traces are off Oct 29, 2019
@tlauda
tlauda merged commit fb21866 into thesofproject:master Oct 30, 2019
@paulstelian97
paulstelian97 deleted the topic/trace_macros branch October 30, 2019 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

When traces are disabled, trace_* calls shouldn't expand to nothing

3 participants