Skip to content

subsys: logging: defines clean up #14607

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 26, 2019

Conversation

nordic-krch
Copy link
Collaborator

RTT backend supports two modes blocking and drop. Apparently,
defines used lead to warning while clang compilation. Define
that caused warning has been changed together with clean up
which removed #ifdefs for definitions.

Fixes #14536

Signed-off-by: Krzysztof Chruscinski [email protected]

@nordic-krch
Copy link
Collaborator Author

@galak could you try it with clang?

#define CONFIG_LOG_BACKEND_RTT_RETRY_CNT 10
#endif

#define DROP_MAX 99

#define DROP_MSG "\nmessages dropped: \r"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know that it is not part of this change, but do you know what is a purpose of \r at the end?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nope,

@zephyrbot
Copy link
Collaborator

zephyrbot commented Mar 18, 2019

All checks are passing now.

Review history of this comment for details about previous failed status.
Note that some checks might have not completed yet.

@codecov-io
Copy link

codecov-io commented Mar 18, 2019

Codecov Report

Merging #14607 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #14607   +/-   ##
=======================================
  Coverage   52.51%   52.51%           
=======================================
  Files         309      309           
  Lines       45048    45048           
  Branches    10419    10419           
=======================================
  Hits        23656    23656           
  Misses      16584    16584           
  Partials     4808     4808

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3ebd9b4...064f513. Read the comment docs.

@galak
Copy link
Collaborator

galak commented Mar 20, 2019

@nordic-krch any plans to update?

@nordic-krch nordic-krch force-pushed the log_rtt_define_cleanup branch from 02d653c to 358c4a2 Compare March 21, 2019 10:46
RTT backend supports two modes blocking and drop. Apparently,
defines used lead to warning while clang compilation. Define
that caused warning has been changed together with clean up
which removed #ifdefs for definitions.

Signed-off-by: Krzysztof Chruscinski <[email protected]>
@nordic-krch nordic-krch force-pushed the log_rtt_define_cleanup branch from 358c4a2 to 064f513 Compare March 21, 2019 10:47
@nordic-krch
Copy link
Collaborator Author

@galak did you tried it with clang. Is the warning fixed?

@galak galak merged commit aa0c417 into zephyrproject-rtos:master Mar 26, 2019
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.

5 participants