core: Add packetisation debug statements

Useful to understand how the message is split with respect to the
binding configuration.

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: I4313b783439dad7fd4252990c5fc77a306fc4b99
diff --git a/core.c b/core.c
index f8abbb1..e7f5689 100644
--- a/core.c
+++ b/core.c
@@ -464,6 +464,9 @@
 
 	max_payload_len = bus->binding->pkt_size - sizeof(*hdr);
 
+	mctp_prdebug("%s: Generating packets for transmission of %zu byte message from %hhu to %hhu",
+		     __func__, msg_len, src, dest);
+
 	/* queue up packets, each of max MCTP_MTU size */
 	for (p = 0, i = 0; p < msg_len; i++) {
 		payload_len = msg_len - p;
@@ -500,6 +503,8 @@
 		p += payload_len;
 	}
 
+	mctp_prdebug("%s: Enqueued %d packets", __func__, i);
+
 	mctp_send_tx_queue(bus);
 
 	return 0;