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

Commits on May 4, 2019

  1. 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)))
    fiam committed May 4, 2019
    Configuration menu
    Copy the full SHA
    af0b33d View commit details
    Browse the repository at this point in the history
  2. All: Fix warnings reported by -Wformat

    Since the tfp_printf() functions now have format attributes, the
    format of the string has to match the arguments.
    fiam committed May 4, 2019
    Configuration menu
    Copy the full SHA
    3dda0cb View commit details
    Browse the repository at this point in the history