浏览代码

Avoid MinGW warning `unknown conversion type character 'z' in format`

Stefan Profanter 5 年之前
父节点
当前提交
0c62edab47
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/discovery/server_multicast.c

+ 1 - 1
examples/discovery/server_multicast.c

@@ -111,7 +111,7 @@ UA_EndpointDescription *getRegisterEndpointFromServer(const char *discoveryServe
         return NULL;
     }
 
-    UA_LOG_DEBUG(UA_Log_Stdout, UA_LOGCATEGORY_SERVER, "Server has %zu endpoints", endpointArraySize);
+    UA_LOG_DEBUG(UA_Log_Stdout, UA_LOGCATEGORY_SERVER, "Server has %lu endpoints", (unsigned long)endpointArraySize);
     UA_EndpointDescription *foundEndpoint = NULL;
     for (size_t i = 0; i < endpointArraySize; i++) {
         UA_LOG_DEBUG(UA_Log_Stdout, UA_LOGCATEGORY_SERVER, "\tURL = %.*s, SecurityMode = %s",