[qca-nss-drv] Enhanced logging
Logging is enhanced to pretty print the message type,
response codes, error codes and message contents.
Change-Id: I36dd6119586bd35843389606b4c43d7a95b0f819
Signed-off-by: Suruchi Agarwal <suruchia@codeaurora.org>
diff --git a/nss_ipv4.c b/nss_ipv4.c
index 81ea0e2..fee2b67 100644
--- a/nss_ipv4.c
+++ b/nss_ipv4.c
@@ -141,9 +141,9 @@
}
/*
- * Log failures
+ * Trace messages.
*/
- nss_core_log_msg_failures(nss_ctx, ncm);
+ nss_ipv4_log_rx_msg(nim);
switch (nim->cm.type) {
case NSS_IPV4_RX_NODE_STATS_SYNC_MSG:
@@ -244,6 +244,11 @@
nim2 = (struct nss_ipv4_msg *)skb_put(nbuf, sizeof(struct nss_ipv4_msg));
memcpy(nim2, nim, sizeof(struct nss_ipv4_msg));
+ /*
+ * Trace messages.
+ */
+ nss_ipv4_log_tx_msg(nim);
+
status = nss_core_send_buffer(nss_ctx, 0, nbuf, NSS_IF_CMD_QUEUE, H2N_BUFFER_CTRL, 0);
if (status != NSS_CORE_STATUS_SUCCESS) {
dev_kfree_skb_any(nbuf);