Maxim Integrated / Mbed 2 deprecated DeepCover Embedded Security in IoT

Dependencies:   MaximInterface mbed

Revision:
20:cdba71cb5506
Parent:
6:b6bafd0a7013
diff -r b8b0cd35f7b4 -r cdba71cb5506 common.cpp
--- a/common.cpp	Mon Aug 15 13:59:17 2016 +0000
+++ b/common.cpp	Tue Sep 06 11:33:14 2016 -0500
@@ -31,6 +31,7 @@
 *******************************************************************************
 */
 
+#include <stdio.h>
 #include "common.hpp"
 
 const size_t charsPerByte = 2;
@@ -48,7 +49,7 @@
   char hexBuf[charsPerByte + 1];
   for (size_t i = 0; i < byteArraySize; i++)
   {
-    std::snprintf(hexBuf, (sizeof(hexBuf) / sizeof(hexBuf[0])), "%2.2X", byteArray[i]);
+    snprintf(hexBuf, (sizeof(hexBuf) / sizeof(hexBuf[0])), "%2.2X", byteArray[i]);
     hexString.append(hexBuf, charsPerByte);
   }
 }
\ No newline at end of file