Skip to content

Get rid of weird printf macros#619

Merged
AndersAstrand merged 2 commits intopercona:mainfrom
AndersAstrand:get-rid-of-weird-printf-macros
Feb 13, 2026
Merged

Get rid of weird printf macros#619
AndersAstrand merged 2 commits intopercona:mainfrom
AndersAstrand:get-rid-of-weird-printf-macros

Conversation

@AndersAstrand
Copy link
Copy Markdown
Contributor

These macros were just weird and pointless. All of these strings are regular NUL-terminated strings so there is no need for the strange memcpy() done here.

This macro was extremely weirdly named and only used in one place.
This weirdly named macro didn't add anything of value. Just use
strlcpy() instead. All of these strings are regular NUL-terminated
strings.
@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 12, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.44%. Comparing base (3a886c7) to head (a12908c).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #619      +/-   ##
==========================================
+ Coverage   85.33%   85.44%   +0.11%     
==========================================
  Files           3        3              
  Lines        1343     1340       -3     
  Branches      216      217       +1     
==========================================
- Hits         1146     1145       -1     
+ Misses         93       92       -1     
+ Partials      104      103       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@AndersAstrand AndersAstrand merged commit b7ee11d into percona:main Feb 13, 2026
21 of 22 checks passed
@AndersAstrand AndersAstrand deleted the get-rid-of-weird-printf-macros branch February 13, 2026 11:46
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.

2 participants