tests: put the printf attribute in the header for _test_print_failed()
authorBartosz Golaszewski <bartekgola@gmail.com>
Sun, 14 May 2017 11:37:51 +0000 (13:37 +0200)
committerBartosz Golaszewski <bartekgola@gmail.com>
Sun, 14 May 2017 11:37:51 +0000 (13:37 +0200)
commitc1d8ad3f84ed203e49a0766fee30868d42ab8d17
treea3b3b0edb365cf02a12acc5151f2ec50ee263f54
parent0fc40743de99f6d8d11c6b42da043569f8c8b3ae
tests: put the printf attribute in the header for _test_print_failed()

If the printf attribute is only present next to the function's
definition, the compiler only checks the calls in the same compilation
unit.

In order to verify all the calls, annotate the declaration of
_test_print_failed() in gpiod-test.h.

Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
tests/gpiod-test.c
tests/gpiod-test.h