浏览代码

siptrace: rpc commands updated to use rpl_printf()

Daniel-Constantin Mierla 11 年之前
父节点
当前提交
13dd700bc8
共有 1 个文件被更改,包括 3 次插入3 次删除
  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)");