rpc_server: Avoid casts in DBG statements
authorVolker Lendecke <vl@samba.org>
Wed, 20 Mar 2019 15:49:26 +0000 (16:49 +0100)
committerJeremy Allison <jra@samba.org>
Fri, 22 Mar 2019 18:02:17 +0000 (18:02 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/rpc_server/rpc_server.c

index 59f3e90f9a15c44b6ef1601d26272073c5ff025d..0230d73abb24934c2be3eed82cc80b1e49027627 100644 (file)
@@ -496,14 +496,14 @@ void named_pipe_packet_process(struct tevent_req *subreq)
                return;
        }
 
-       DEBUG(10, ("Sending %u fragments in a total of %u bytes\n",
-                  (unsigned int)npc->count,
-                  (unsigned int)npc->p->out_data.data_sent_length));
+       DBG_DEBUG("Sending %zu fragments in a total of %"PRIu32" bytes\n",
+                 npc->count,
+                 npc->p->out_data.data_sent_length);
 
        for (i = 0; i < npc->count; i++) {
-               DEBUG(10, ("Sending PDU number: %d, PDU Length: %u\n",
-                         (unsigned int)i,
-                         (unsigned int)npc->iov[i].iov_len));
+               DBG_DEBUG("Sending PDU number: %zu, PDU Length: %zu\n",
+                         i,
+                         npc->iov[i].iov_len);
                dump_data(11, (const uint8_t *)npc->iov[i].iov_base,
                                npc->iov[i].iov_len);