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)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 9 Oct 2019 18:14:29 +0000 (14:14 -0400)
commitc4232b91120e002cc33334b00769d3298a879954
tree5f31aff28cf71c76c9bc1c0a5d1dd005ff9d5c7a
parent727170fcc3f4002562f42deeac27c985fa69f57f
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.025785 seconds and 4 git commands to generate.