Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#347 bu_log does not honor string field widths

open-fixed
Sean Morrison
None
5
2013-08-30
2013-08-29
Lee Butler
No

bu_log is not honoring the field width on text strings unless they are specified as a variable.
See the attached source code file. Output example is included in the comments at the begining of the file.

1 Attachments

Discussion

  • Sean Morrison
    Sean Morrison
    2013-08-30

    • status: open --> open-fixed
    • assigned_to: Sean Morrison
     
  • Sean Morrison
    Sean Morrison
    2013-08-30

    Nice catch, thanks Lee. Ironically, that interface had more than 55 unit tests exploring nearly every nook and cranny of format specifier behavior including C99 extensions. It even had support already written to do the correct field width padding and handles precision specifiers for proper string truncation, but those values weren't getting down to the %s handler. Now they are. Now there are 65 unit tests, too.

    This is fixed in r57310 and will be in the next release. Thanks again.