Charles Chan
Committed by Gerrit Code Review

Print EthCriterion mask only when there is one

Change-Id: I7de9d5d9141c5a0b52ce189dd74c4e91e8db4f79
...@@ -77,7 +77,9 @@ public final class EthCriterion implements Criterion { ...@@ -77,7 +77,9 @@ public final class EthCriterion implements Criterion {
77 77
78 @Override 78 @Override
79 public String toString() { 79 public String toString() {
80 - return type().toString() + SEPARATOR + mac + "/" + mask; 80 + return (mask != null) ?
81 + type().toString() + SEPARATOR + mac + "/" + mask :
82 + type().toString() + SEPARATOR + mac;
81 } 83 }
82 84
83 @Override 85 @Override
......