• jfb's avatar
    Fix printf formats · bf505329
    jfb authored
    The usage of __attribute__((format(x, y)) was either wrong or missing from multiple functions, leading to erroneous formats. This CL:
    
     - Imports PRINTF_FORMAT macro from Chrome's src/base/compiler-specific.h.
     - Uses it appropriately.
     - Imports Chrome's base/format_macros.h mainly to fix size_t formats (further cleanup could be done).
     - Fixes a bunch of incorrect formats.
    
    Original CL: https://codereview.chromium.org/1869433004
    Reverted in: https://codereview.chromium.org/1867383002
    
    R= jochen@chromium.org
    TBR= bmeurer@chromium.org, yangguo@chromium.org, ahaas@chromium.org
    
    Review URL: https://codereview.chromium.org/1877453002
    
    Cr-Commit-Position: refs/heads/master@{#35394}
    bf505329
log-utils.cc 5.83 KB