[PATCH] smbcontrol.c: fix a bug of drvupgrade

Peng Haitao penght at cn.fujitsu.com
Wed May 22 02:50:11 MDT 2013


When message-type is drvupgrade, MSG_DEBUG should be replaced with MSG_PRINTER_DRVUPGRADE.

Signed-off-by: Peng Haitao <penght at cn.fujitsu.com>
---
 source3/utils/smbcontrol.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/source3/utils/smbcontrol.c b/source3/utils/smbcontrol.c
index 47884ff..00b23f7 100644
--- a/source3/utils/smbcontrol.c
+++ b/source3/utils/smbcontrol.c
@@ -928,7 +928,7 @@ static bool do_drvupgrade(struct tevent_context *ev_ctx,
 		return False;
 	}
 
-	return send_message(msg_ctx, pid, MSG_DEBUG, argv[1],
+	return send_message(msg_ctx, pid, MSG_PRINTER_DRVUPGRADE, argv[1],
 			    strlen(argv[1]) + 1);
 }
 
-- 
1.8.1.4



More information about the samba-technical mailing list