Browse Source

siptrace: rpc commands updated to use rpl_printf()

Daniel-Constantin Mierla 11 years ago
parent
commit
13dd700bc8
1 changed files with 3 additions and 3 deletions
  1. 3 3
      modules/siptrace/siptrace.c

+ 3 - 3
modules/siptrace/siptrace.c

@@ -1887,16 +1887,16 @@ static void siptrace_rpc_status (rpc_t* rpc, void* c) {
 
 	if (strncasecmp(status.s, "on", strlen("on")) == 0) {
 		*trace_on_flag = 1;
-		rpc->printf(c, "Enabled");
+		rpc->rpl_printf(c, "Enabled");
 		return;
 	}
 	if (strncasecmp(status.s, "off", strlen("off")) == 0) {
 		*trace_on_flag = 0;
-		rpc->printf(c, "Disabled");
+		rpc->rpl_printf(c, "Disabled");
 		return;
 	}
 	if (strncasecmp(status.s, "check", strlen("check")) == 0) {
-		rpc->printf(c, *trace_on_flag ? "Enabled" : "Disabled");
+		rpc->rpl_printf(c, *trace_on_flag ? "Enabled" : "Disabled");
 		return;
 	} 
 	rpc->fault(c, 500, "Bad parameter (on, off or check)");