These aren't really interesting, and some of them happen regularly.
I went a little overboard with the debug prints, remove some that
are not useful to make the output a little less cluttered.

Signed-off-by: Chris Leech <[email protected]>
---

 fcoemon.c       |   10 ++--------
 lib/fip.c       |    2 --
 lib/rtnetlink.c |    1 -
 3 files changed, 2 insertions(+), 11 deletions(-)

diff --git a/fcoemon.c b/fcoemon.c
index 64e1091..ffe39ef 100644
--- a/fcoemon.c
+++ b/fcoemon.c
@@ -516,17 +516,11 @@ int fcm_vlan_disc_handler(struct fiphdr *fh, struct 
sockaddr_ll *sa, void *arg)
        char ifname[IFNAMSIZ];
        struct fcoe_port *p;
 
-       FCM_LOG_DBG("%s", __func__);
-
-       if (ntohs(fh->fip_proto) != FIP_PROTO_VLAN) {
-               FCM_LOG_DBG("ignoring FIP frame that is not of type VLAN");
+       if (ntohs(fh->fip_proto) != FIP_PROTO_VLAN)
                return -1;
-       }
 
-       if (fh->fip_subcode != FIP_VLAN_NOTE) {
-               FCM_LOG_DBG("ignoring FIP VLAN Discovery Request");
+       if (fh->fip_subcode != FIP_VLAN_NOTE)
                return -1;
-       }
 
        /* cancel the retry timer, response received */
        rtnl_get_linkname(sa->sll_ifindex, ifname);
diff --git a/lib/fip.c b/lib/fip.c
index a5430c9..b0bf07d 100644
--- a/lib/fip.c
+++ b/lib/fip.c
@@ -128,8 +128,6 @@ int fip_recv(int s, fip_handler *fn, void *arg)
        struct fiphdr *fh;
        ssize_t len, desc_len;
 
-       FIP_LOG_DBG("%s", __func__);
-
        len = recvmsg(s, &msg, 0);
        if (len < 0) {
                FIP_LOG_ERRNO("packet socket recv error");
diff --git a/lib/rtnetlink.c b/lib/rtnetlink.c
index b7a32f2..a8a8b0c 100644
--- a/lib/rtnetlink.c
+++ b/lib/rtnetlink.c
@@ -122,7 +122,6 @@ int rtnl_recv(int s, rtnl_handler *fn, void *arg)
        int rc = 0;
        bool more = false;
 
-       RTNL_LOG_DBG("%s", __func__);
 more:
        len = recv(s, buf, sizeof(buf), 0);
        if (len < 0) {

_______________________________________________
devel mailing list
[email protected]
http://www.open-fcoe.org/mailman/listinfo/devel

Reply via email to