tests: add format attributes to functions receiving format strings in tap.h
authorSimon Marchi <simon.marchi@efficios.com>
Fri, 4 Oct 2019 16:27:04 +0000 (12:27 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Mon, 7 Oct 2019 18:35:59 +0000 (14:35 -0400)
commit092f9aea4bff60d227142dc9c4dd37795fa850e1
treefb26ba5033165d9286668a7b79765ed316ce0a4f
parent3c634c8559a62a62f56ba5b28380ab49341dd6a0
tests: add format attributes to functions receiving format strings in tap.h

This makes the compiler validate the format strings against the types of
the passed arguments.  It found a few (minor) issues, which are also
fixed by this patch.

Note that in test_bitfield.c, the format string now includes "0x" before
printing the number in hexadecimal, to avoid any confusion when the user
reads it.

Change-Id: I07cac88aa3cdd445d79f2c12bc0f9333f6a768a9
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2129
Tested-by: jenkins <jenkins@lttng.org>
tests/bitfield/test_bitfield.c
tests/plugins/flt.lttng-utils.debug-info/test_bin_info.c
tests/utils/tap/tap.h
This page took 0.023766 seconds and 4 git commands to generate.