summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/printing/notify.c6
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c2
2 files changed, 8 insertions, 0 deletions
diff --git a/source3/printing/notify.c b/source3/printing/notify.c
index 4bde6a94f6..728ef47d8a 100644
--- a/source3/printing/notify.c
+++ b/source3/printing/notify.c
@@ -86,6 +86,9 @@ void print_notify_send_messages(void)
offset += pq->buflen;
}
+ DEBUG(5, ("print_notify_send_messages: sending %d print notify message%s\n",
+ msg_count, msg_count != 1 ? "s" : ""));
+
message_send_all(tdb, MSG_PRINTER_NOTIFY2, buf, offset, False, NULL);
talloc_destroy_pool(send_ctx);
notify_queue_head = NULL;
@@ -149,6 +152,9 @@ again:
pnqueue->buf = buf;
pnqueue->buflen = buflen;
+
+ DEBUG(5, ("send_spoolss_notify2_msg: appending message 0x%02x/0x%02x to notify_queue_head\n", msg->type, msg->field));
+
DLIST_ADD(notify_queue_head, pnqueue);
return;
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index 0236057475..3a2bde2d05 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -899,6 +899,8 @@ static void receive_notify2_message_list(int msg_type, pid_t src, void *msg, siz
msg_count = IVAL(buf, 0);
msg_ptr = buf + 4;
+ DEBUG(5, ("receive_notify2_message_list: got %d messages in list\n", msg_count));
+
if (msg_count == 0)
goto bad_msg;