gpiomon: simplify custom formats
authorBartosz Golaszewski <bartekgola@gmail.com>
Wed, 21 Jun 2017 11:47:30 +0000 (13:47 +0200)
committerBartosz Golaszewski <bartekgola@gmail.com>
Wed, 21 Jun 2017 11:53:18 +0000 (13:53 +0200)
commitd4d1c11f313e6269d0341c2bc1b854709ea56490
tree7c1bd025ab106e00cd3d550fb80eae5499acccc9
parent908a84f9da1220b4009aedd9bc32b34b418fd162
gpiomon: simplify custom formats

Instead of replacing the format specifiers in a separate buffer, just
make use of the output stream buffering.

Also: update the gpiomon tests with some corner cases.

Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
src/tools/gpiomon.c
tests/tests-gpiomon.c