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 {
@Override
public String toString() {
return type().toString() + SEPARATOR + mac + "/" + mask;
return (mask != null) ?
type().toString() + SEPARATOR + mac + "/" + mask :
type().toString() + SEPARATOR + mac;
}
@Override
......