Browse Source

Define totemiba_log_printf properly

Signed-off-by: Steven Dake <sdake@redhat.com>
Reviewed-by: Angus Salkeld <asalkeld@redhat.com>
Steven Dake 14 năm trước cách đây
mục cha
commit
e416a04b02
1 tập tin đã thay đổi với 5 bổ sung3 xóa
  1. 5 3
      exec/totemiba.c

+ 5 - 3
exec/totemiba.c

@@ -187,13 +187,15 @@ struct totemiba_instance {
 
 
 	struct ibv_cq *send_token_recv_cq;
 	struct ibv_cq *send_token_recv_cq;
 
 
-	void (*totemiba_log_printf) (
-		unsigned int rec_ident,
+        void (*totemiba_log_printf) (
+		int level,
+		int subsys,
 		const char *function,
 		const char *function,
 		const char *file,
 		const char *file,
 		int line,
 		int line,
 		const char *format,
 		const char *format,
-		...)__attribute__((format(printf, 5, 6)));
+		...)__attribute__((format(printf, 6, 7)));
+
 
 
 	int totemiba_subsys_id;
 	int totemiba_subsys_id;