Browse code

kazoo: proper print formater %.*s instead of %*.s

Daniel-Constantin Mierla authored on 20/05/2022 07:50:27
Showing 1 changed files
... ...
@@ -1340,7 +1340,7 @@ int kz_amqp_async_query_ex(struct sip_msg* msg, char* _exchange, char* _routing_
1340 1340
 	  json_obj = json_tokener_parse(json_s.s);
1341 1341
 
1342 1342
 	  if (json_obj==NULL) {
1343
-		  LM_ERR("empty or invalid JSON payload : %*.s\n", json_s.len, json_s.s);
1343
+		  LM_ERR("empty or invalid JSON payload : %.*s\n", json_s.len, json_s.s);
1344 1344
 		  goto error;
1345 1345
 	  }
1346 1346
 
... ...
@@ -1499,7 +1499,7 @@ int kz_amqp_query_ex(struct sip_msg* msg, char* exchange, char* routing_key, cha
1499 1499
 		struct json_object *j = json_tokener_parse(json_s.s);
1500 1500
 
1501 1501
 		if (j==NULL) {
1502
-			LM_ERR("empty or invalid JSON payload : %*.s\n", json_s.len, json_s.s);
1502
+			LM_ERR("empty or invalid JSON payload : %.*s\n", json_s.len, json_s.s);
1503 1503
 			return -1;
1504 1504
 		}
1505 1505