IOT-2539 Cleanup -Wformat= warnings 07/22807/2
authorGeorge Nash <george.nash@intel.com>
Mon, 7 Aug 2017 20:40:28 +0000 (13:40 -0700)
committerNathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
Mon, 16 Oct 2017 17:52:19 +0000 (17:52 +0000)
commitcba0de12cbeaff68b31e82b26e39fffb11a2a9b0
treeac241b9ca5a7203a75d1d4342ac35e721672307f
parent79ba615e70888841a31befb8e614124832f9688f
IOT-2539 Cleanup -Wformat= warnings

The -Wformat= warning is given when the conversion specifier
in a printf or scanf command does not match the value actually
passed in.

In this commit all of the issues are found in LOG functions.
If type passed in was a variable size parameter like a pointer or
size_t. The the PRIuPTR value from the inttypes.h
header is used. For ssize_t variables the PRIdPTR was used.

Bug: https://jira.iotivity.org/browse/IOT-2539
Change-Id: I4977253ac7ee68d2e80a26a0963b770b2ce87032
Signed-off-by: George Nash <george.nash@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/21771
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
(cherry picked from commit 60d89aa88e246f3c5f7274dcccde2cd4fd3703fe
)
12 files changed:
resource/csdk/connectivity/src/adapter_util/ca_adapter_net_ssl.c
resource/csdk/connectivity/src/adapter_util/caadapterutils.c
resource/csdk/connectivity/src/bt_le_adapter/caleadapter.c
resource/csdk/connectivity/src/cainterfacecontroller.c
resource/csdk/connectivity/src/camessagehandler.c
resource/csdk/connectivity/src/ip_adapter/caipserver.c
resource/csdk/connectivity/src/tcp_adapter/catcpadapter.c
resource/csdk/connectivity/src/tcp_adapter/catcpserver.c
resource/csdk/security/src/occertutility.c
resource/csdk/security/src/pstatresource.c
resource/csdk/security/src/rolesresource.c
service/coap-http-proxy/src/CoapHttpParser.c