Fixed mismatched printf argument
authorGeorge Nash <george.nash@intel.com>
Tue, 6 Dec 2016 19:50:19 +0000 (11:50 -0800)
committerDan Mihai <Daniel.Mihai@microsoft.com>
Thu, 8 Dec 2016 17:55:01 +0000 (17:55 +0000)
Change-Id: I16278adc2a1864ec1e95886014a6c6746d94e661
Signed-off-by: George Nash <george.nash@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/15203
Reviewed-by: Kevin Kane <kkane@microsoft.com>
Reviewed-by: Larry Sachs <larry.j.sachs@intel.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
resource/csdk/security/src/credresource.c

index 64bca8f..95ef26f 100644 (file)
@@ -30,6 +30,7 @@
 #endif
 #include <stdint.h>
 #include <stdbool.h>
+#include <inttypes.h>
 
 #include "cainterface.h"
 #include "payload_logging.h"
@@ -1244,7 +1245,7 @@ OicSecCred_t * GenerateCredential(const OicUuid_t * subject, OicSecCredType_t cr
     OIC_LOG_BUFFER(DEBUG, TAG, cred->subject.id, sizeof(cred->subject.id));
     if (cred->privateData.data)
     {
-        OIC_LOG_V(DEBUG, TAG, "GenerateCredential : privateData len: %d", cred->privateData.len);
+        OIC_LOG_V(DEBUG, TAG, "GenerateCredential : privateData len: %"PRIuPTR, cred->privateData.len);
         OIC_LOG_BUFFER(DEBUG, TAG, cred->privateData.data, cred->privateData.len);
     }
 #if defined(__WITH_DTLS__) || defined(__WITH_TLS__)