logging: add format checks for printf input
authorHauke Mehrtens <hauke.mehrtens@lantiq.com>
Tue, 22 Sep 2015 14:40:58 +0000 (16:40 +0200)
committerPatrick Lankswert <patrick.lankswert@intel.com>
Wed, 23 Sep 2015 19:41:30 +0000 (19:41 +0000)
commitd72f19fb1ebc0571cc31801e2725976e79a051e7
tree0e35af1f41e0324ae7dc4d7dc0381311ec661400
parentd5cea0ae54fbf0980b59bbc60e15392773f39466
logging: add format checks for printf input

This patch makes gcc aware that this is a function formating a string,
this way gcc is able to check if the format string is correct and warn
the user otherwise. This should make it possible to find some more
problems in the code.

Change-Id: I27058eb1d5c3352e6f872e4013eedb94d42d757a
Signed-off-by: Hauke Mehrtens <hauke.mehrtens@lantiq.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2935
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
resource/csdk/connectivity/common/inc/logger.h
resource/csdk/logger/include/logger.h