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:
parent
c3dca32a2f
commit
c92820677d
3 changed files with 5 additions and 3 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue