Roussed on Jeremy for not putting in enough debugs in the new print
authorTim Potter <tpot@samba.org>
Thu, 5 Sep 2002 04:22:16 +0000 (04:22 +0000)
committerTim Potter <tpot@samba.org>
Thu, 5 Sep 2002 04:22:16 +0000 (04:22 +0000)
notify stuff.  (-:
(This used to be commit 87c156704f5d8913cf7bf3134ec5ba6403d36cca)

source3/printing/notify.c
source3/rpc_server/srv_spoolss_nt.c

index 4bde6a94f692c22c2d55291a84666f1946e6077d..728ef47d8ab082580f9f89f24c4f63c3e2453c6e 100644 (file)
@@ -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;
 
index 02360574759f3576e9e1a56c38d7cb9b56e1142e..3a2bde2d05fdae92fb8db3b4c1c687dc30a4a6fa 100644 (file)
@@ -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;