[riot-notifications] [RIOT-OS/RIOT] sys/fmt: Added functions for printing table columns (#11692)

Marian Buschsieweke notifications at github.com
Thu Jun 13 15:00:35 CEST 2019

### Contribution description

- `print_spaces()` can be used to fill up a column by the given number of spaces
- `print_col_u32_dec()` / `print_col_s32_dec()` can be used to print an `uint32_t` / `int32_t` as a column of the given width
- tests/driver_ltc4150 has been updated to use the new API

### Testing procedure

- Run `tests/driver_ltc4150` and check if the table is still correctly printed

### Issues/PRs references
PR https://github.com/RIOT-OS/RIOT/pull/11350 will be updated to use this API once merged. The main idea is to avoid code duplication between tests/driver_ltc4150 and tests/driver_ina2xx
You can view, comment on, or merge this pull request online at:


-- Commit Summary --

  * sys/fmt: Added functions to print table columns
  * tests/driver_ltc4150: Use new fmt API for table

-- File Changes --

    M sys/fmt/fmt.c (44)
    M sys/include/fmt.h (19)
    M tests/driver_ltc4150/main.c (171)

-- Patch Links --


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190613/6d148ac3/attachment.html>

More information about the notifications mailing list