瀏覽代碼

mi_rpc: rpc commands updated to use rpl_printf()

Daniel-Constantin Mierla 11 年之前
父節點
當前提交
95a5b8184e
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      modules/mi_rpc/mi_rpc_mod.c

+ 2 - 2
modules/mi_rpc/mi_rpc_mod.c

@@ -268,7 +268,7 @@ static int mi_rpc_print_tree(rpc_t* rpc, void* ctx, struct mi_root *tree,
 		case MI_FIFO_PRINT:
 		case MI_FIFO_PRINT:
 		case MI_DATAGRAM_PRINT:
 		case MI_DATAGRAM_PRINT:
 			/* always success, code & reason are the part of the reply */
 			/* always success, code & reason are the part of the reply */
-			rpc->printf(ctx, "%d %.*s\n", tree->code,
+			rpc->rpl_printf(ctx, "%d %.*s\n", tree->code,
 						tree->reason.len, tree->reason.s);
 						tree->reason.len, tree->reason.s);
 			break;
 			break;
 		case MI_PRETTY_PRINT:
 		case MI_PRETTY_PRINT:
@@ -288,7 +288,7 @@ static int mi_rpc_print_tree(rpc_t* rpc, void* ctx, struct mi_root *tree,
 	}
 	}
 	if (mode==MI_FIFO_PRINT){
 	if (mode==MI_FIFO_PRINT){
 		/* mi fifo adds an extra "\n" at the end */
 		/* mi fifo adds an extra "\n" at the end */
-		rpc->printf(ctx, "\n");
+		rpc->rpl_printf(ctx, "\n");
 	}
 	}
 	
 	
 	return 0;
 	return 0;