Patchwork [Open-FCoE] fcoemon: Add debugging message for 'recv'

login
register
mail settings
Submitter Hannes Reinecke
Date June 30, 2016, 8:37 a.m.
Message ID <1467275872-11542-1-git-send-email-hare@suse.de>
Download mbox | patch
Permalink /patch/324/
State New
Headers show

Comments

Hannes Reinecke - June 30, 2016, 8:37 a.m.
We already have a debugging message for 'send', so add the
corresponding 'recv' debugging message, too.

Signed-off-by: Hannes Reinecke <hare@suse.com>
---
 fcoemon.c | 1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/fcoemon.c b/fcoemon.c
index 158ee68..94d1a00 100644
--- a/fcoemon.c
+++ b/fcoemon.c
@@ -2204,6 +2204,7 @@  static void fcm_dcbd_rx(void *arg)
 		len = strlen(buf);
 		ASSERT(len <= rc);
 
+		FCM_LOG_DBG("recv '%s', len=%d bytes succeeded", buf, (int)len);
 		switch (buf[CLIF_RSP_MSG_OFF]) {
 		case CMD_RESPONSE:
 			st = fcm_get_hex(buf + CLIF_STAT_OFF, CLIF_STAT_LEN,