summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-09-05 04:22:16 +0000
committerTim Potter <tpot@samba.org>2002-09-05 04:22:16 +0000
commit481c0db0acf6bf305a630aae9751a6d9655e0cda (patch)
tree98648baea539b9fb28fcecd8dd282a7e9eafbbec /source3
parent58b5b6f4036c8d958a62b813b46e873c052a0327 (diff)
downloadsamba-481c0db0acf6bf305a630aae9751a6d9655e0cda.tar.gz
samba-481c0db0acf6bf305a630aae9751a6d9655e0cda.tar.bz2
samba-481c0db0acf6bf305a630aae9751a6d9655e0cda.zip
Roussed on Jeremy for not putting in enough debugs in the new print
notify stuff. (-: (This used to be commit 87c156704f5d8913cf7bf3134ec5ba6403d36cca)
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;