enable printf format checking for dds_log

Also remove superfluous parameters in a TRACE statement and fix a format
specification in pong.c.

Signed-off-by: Erik Boasson <eb@ilities.com>
This commit is contained in:
Erik Boasson 2019-04-11 15:12:17 +02:00 committed by eboasson
parent bb7373b90d
commit 21a1c4aa33
3 changed files with 5 additions and 3 deletions

View file

@ -25,6 +25,7 @@
#include <stdio.h>
#include "dds/export.h"
#include "dds/ddsrt/attributes.h"
#if defined (__cplusplus)
extern "C" {
@ -199,7 +200,8 @@ dds_log(
uint32_t line,
const char *func,
const char *fmt,
...);
...)
ddsrt_attribute_format((__printf__, 5, 6));
/**
* @brief Undecorated function name of the current function.