]> rtime.felk.cvut.cz Git - orte/eurobot.git/commitdiff
JORTE: use correct format specifiers
authorMartin Vajnar <martin.vajnar@gmail.com>
Sun, 7 Jul 2013 21:38:13 +0000 (23:38 +0200)
committerPavel Pisa <pisa@cmp.felk.cvut.cz>
Mon, 23 Sep 2013 09:06:25 +0000 (11:06 +0200)
orte/libjorte/JORTEDomainAppCreate.c
orte/libjorte/createAppInfo.c

index 9ad92063ef34c18a3c3e23d11efebb7da7036c49..da82c61128fa44bceb4352180533145763d79698 100644 (file)
@@ -35,6 +35,7 @@
 // new data types
 #include "jorte/jorte_typedefs_defines.h"
 #include "jorte/jorte_protos_api.h"
+#include <inttypes.h>
 
 // /////////////////////////////////////////////////////////////////////
 //  public void onRegFail()
@@ -1141,7 +1142,7 @@ Java_org_ocera_orte_DomainApp_jORTEDomainDefaultAppCreate
     return 0;
   }
   #ifdef TEST_STAGE
-    printf(":c: ORTEDomainDefautlAppCreate() ok.. + %\n", d);
+    printf(":c: ORTEDomainDefautlAppCreate() ok.. + %"PRIiPTR"\n", d);
   #endif
   return (d);
 }
@@ -1230,7 +1231,7 @@ Java_org_ocera_orte_DomainApp_jORTEDomainAppCreate
     return 0;
   }
   #ifdef TEST_STAGE
-    printf(":c: ORTEDomainAppCreate() ok.. + %\n", d);
+    printf(":c: ORTEDomainAppCreate() ok.. + %"PRIiPTR"\n", d);
   #endif
   return (d);
 }
index b7771f046d83a416c138536dbd1aed34e01f60d5..87a3652f84a5846387e281e590cb0547585ec2e9 100644 (file)
@@ -4,6 +4,7 @@
 #include "orte.h"
 #include "jorte/4all.h"
 #include "jorte/jorte_protos_api.h"
+#include <inttypes.h>
 
 jobject createAppInfo(JNIEnv *env, const ORTEAppInfo *ainfo)
 {
@@ -88,7 +89,7 @@ jobject createAppInfo(JNIEnv *env, const ORTEAppInfo *ainfo)
       break;
     }
     #ifdef TEST_STAGE
-       printf(":c: ainfo.unicastIPAddressList = %d \n",ainfo->unicastIPAddressList);
+       printf(":c: ainfo.unicastIPAddressList = %"PRIoPTR"\n",(intptr_t)ainfo->unicastIPAddressList);
     #endif
     (*env)->SetLongField(env,
                          obj,
@@ -121,8 +122,8 @@ jobject createAppInfo(JNIEnv *env, const ORTEAppInfo *ainfo)
       break;
     }
     #ifdef TEST_STAGE
-       printf(":c: ainfo.multicastIPAddressList = %\n",
-              ainfo->metatrafficMulticastIPAddressList);
+       printf(":c: ainfo.multicastIPAddressList = %"PRIoPTR"\n",
+              (intptr_t)ainfo->metatrafficMulticastIPAddressList);
     #endif
     (*env)->SetLongField(env,
                          obj,