Skip to content
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

[Core] Update mpaland/printf to eyalroz/printf fork #16163

Merged
merged 1 commit into from
Jul 7, 2022

Conversation

KarlK90
Copy link
Member

@KarlK90 KarlK90 commented Feb 1, 2022

Description

The currently used printf implementation by mpaland was abandoned in ~2019 and the fork by eyalroz is now regarded to be the goto replacement of it incorporating bug fixes and improvements (although I don't know if QMK is affected by these in any way) . So this commit incorporates the changes needed to use this fork in QMK.

As the printf functions now have proper format checking a workaround is needed for the b binary format specifier, which wont be included until C2X in the official C standard - therefore will always throw a warning.

Note that pointer %t ptrdiff_t is always supported since eyalroz/printf@51c90f9

Output

QMK:Onekey Raspberry Pi:1: r/c 01234567
QMK:Onekey Raspberry Pi:1: 00: 10000000
QMK:Onekey Raspberry Pi:1: keyboard_report: 00 00 04 00 00 00 00 00 

Types of Changes

  • Core
  • Bugfix
  • New feature
  • Enhancement/optimization
  • Keyboard (addition or update)
  • Keymap/layout/userspace (addition or update)
  • Documentation

Issues Fixed or Closed by This PR

Checklist

  • My code follows the code style of this project: C, Python
  • I have read the PR Checklist document and have made the appropriate changes.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • I have tested the changes and verified that they work and don't break anything (as well as I can manage).

@stale
Copy link

stale bot commented Apr 16, 2022

Thank you for your contribution!
This pull request has been automatically marked as stale because it has not had activity in the last 45 days. It will be closed in 30 days if no further activity occurs. Please feel free to give a status update now, or re-open when it's ready.
For maintainers: Please label with awaiting review, breaking_change, in progress, or on hold to prevent the issue from being re-flagged.

@stale stale bot removed the awaiting changes label Apr 16, 2022
@drashna drashna requested a review from a team April 17, 2022 00:39
@drashna
Copy link
Member

drashna commented Apr 17, 2022

Merge conflicts.

@tzarc
Copy link
Member

tzarc commented May 15, 2022

Deferred to Q3 -- still marked as Draft, has conflicts.

@KarlK90 KarlK90 force-pushed the feature/update-printf-library branch from 262f19c to 647539e Compare June 5, 2022 17:47
@KarlK90 KarlK90 force-pushed the feature/update-printf-library branch 2 times, most recently from b98aba8 to 158c31e Compare July 7, 2022 06:28
@KarlK90 KarlK90 marked this pull request as ready for review July 7, 2022 06:29
mpaland printf implementation was abandoned in ~2019 and the fork by
eyalroz is now regarded to be the goto replacement of it. So this commit
incoporates the changes needed to use this fork in QMK.

Note that pointer ptrdiff_t is always supported since commit
51c90f93a97fdaef895783ecbe24569be0db7cb8
@KarlK90 KarlK90 force-pushed the feature/update-printf-library branch from 158c31e to 2ae8344 Compare July 7, 2022 06:43
@KarlK90 KarlK90 merged commit d9bb189 into qmk:develop Jul 7, 2022
@KarlK90 KarlK90 mentioned this pull request Jul 7, 2022
14 tasks
nolanseaton pushed a commit to nolanseaton/qmk_firmware that referenced this pull request Jan 23, 2023
mpaland printf implementation was abandoned in ~2019 and the fork by
eyalroz is now regarded to be the goto replacement of it. So this commit
incoporates the changes needed to use this fork in QMK.

Note that pointer ptrdiff_t is always supported since commit
51c90f93a97fdaef895783ecbe24569be0db7cb8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants