Code cleaning
Change-Id: I9c32de6a3c36820fe54651cd5d9ccabc394fd0cb
diff --git a/src/main/java/net/onrc/onos/ofcontroller/networkgraph/NetworkGraphImpl.java b/src/main/java/net/onrc/onos/ofcontroller/networkgraph/NetworkGraphImpl.java
index 0b836c3..b821050 100644
--- a/src/main/java/net/onrc/onos/ofcontroller/networkgraph/NetworkGraphImpl.java
+++ b/src/main/java/net/onrc/onos/ofcontroller/networkgraph/NetworkGraphImpl.java
@@ -704,13 +704,13 @@
// Attached Ports' Parent Switch must exist
Switch sw = getSwitch(swp.dpid);
if ( sw == null ) {
- log.warn("Switch {} for the attachment point did not exist. skipping mutation", sw);
+ log.warn("Switch for the attachment point {} did not exist. skipping mutation", swp);
continue;
}
// Attached Ports must exist
Port port = sw.getPort(swp.number);
if ( port == null ) {
- log.warn("Port {} for the attachment point did not exist. skipping mutation", port);
+ log.warn("Port for the attachment point {} did not exist. skipping mutation", swp);
continue;
}
// Attached Ports must not have Link
@@ -770,13 +770,13 @@
// Attached Ports' Parent Switch must exist
Switch sw = getSwitch(swp.dpid);
if ( sw == null ) {
- log.warn("Switch {} for the attachment point did not exist. skipping attachment point mutation", sw);
+ log.warn("Switch for the attachment point {} did not exist. skipping attachment point mutation", swp);
continue;
}
// Attached Ports must exist
Port port = sw.getPort(swp.number);
if ( port == null ) {
- log.warn("Port {} for the attachment point did not exist. skipping attachment point mutation", port);
+ log.warn("Port for the attachment point {} did not exist. skipping attachment point mutation", swp);
continue;
}