tests/pkg_jsmn: replace use of "%.*s" string formatter#12795
Merged
maribu merged 2 commits intoRIOT-OS:masterfrom Nov 23, 2019
Merged
tests/pkg_jsmn: replace use of "%.*s" string formatter#12795maribu merged 2 commits intoRIOT-OS:masterfrom
maribu merged 2 commits intoRIOT-OS:masterfrom
Conversation
maribu
approved these changes
Nov 23, 2019
Member
maribu
left a comment
There was a problem hiding this comment.
ACK. However, I have one suggestion for paranoid safety measures. Should not be needed currently, though. Feel free to ignore or to squash right away.
This is not compatible with avr-libc
c327bd4 to
d756507
Compare
13 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Contribution description
This PR fixes the
tests/pkg_jsmnon AVR by replacing the use of%.*sstring formatter in printf calls by a plain%sstring formatter.This is basically the same approach that is proposed in #12792 for
tests/pipe.There's also a commit that is removing the duplicate definition of
ARRAY_SIZEand replace it with an include tokernel_defines.h.Testing procedure
The following commands should work:
Issues/PRs references
Tick another item in #12651