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

Printf: Implement size checked and va_list variants #4683

Merged
merged 2 commits into from May 5, 2019

Conversation

fiam
Copy link
Member

@fiam fiam commented May 4, 2019

Printf: Implement size checked and va_list variants
tfp_snprintf(), tfp_vsprintf() and tfp_vsnprintf

Mark all the functions as accepting a format string.

Also, drop the #define's for printf() and snprintf() and call
them explicitely, since #defining printf messes up with
attribute ((format (printf, X, Y)))

All: Fix warnings reported by -Wformat

fiam added 2 commits May 5, 2019 00:21
tfp_snprintf(), tfp_vsprintf() and tfp_vsnprintf

Mark all the functions as accepting a format string.

Also, drop the #define's for printf() and snprintf() and call
them explicitely, since #defining printf messes up with
__attribute__ ((format (printf, X, Y)))
Since the tfp_printf() functions now have format attributes, the
format of the string has to match the arguments.
@fiam fiam added this to the 2.2 milestone May 4, 2019
@fiam fiam merged commit 43630a0 into development May 5, 2019
@fiam fiam deleted the agh_printf_variants branch May 5, 2019 12:26
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.

None yet

2 participants