Browse code

core: log unexpected char in parse_param2()

(cherry picked from commit a2511df29adc83544f047cbbdba7a8ba88272930)
(cherry picked from commit c6bfa8d8ee14ea27158f09f3b0a04015a1252e1a)
(cherry picked from commit a7143e95b407d53714ed0113e243032c19422c98)

Daniel-Constantin Mierla authored on 08/09/2021 06:04:06 • Henning Westerholt committed on 22/10/2021 12:12:21
Showing 1 changed files
... ...
@@ -514,7 +514,7 @@ static inline int parse_param2(
514 514
 		goto ok; /* To be able to parse URI parameters */
515 515
 
516 516
 	if(_s->s[0] != separator) {
517
-		LM_ERR("Invalid character, %c expected\n", separator);
517
+		LM_ERR("Invalid character '%c' - expected '%c'\n", _s->s[0], separator);
518 518
 		goto error;
519 519
 	}
520 520