cosmetic change in printing of forward rules
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 27 Feb 2013 13:40:51 +0000 (14:40 +0100)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 27 Feb 2013 13:40:51 +0000 (14:40 +0100)
forwards.c

index 9f658fc60da24819462ed7f5c2eba44e14b8b31e..e01f1266ed721baca25678c772d5f42b9ec06202 100644 (file)
@@ -125,10 +125,7 @@ print_forward(enum fw3_table table, enum fw3_family family,
        s = forward->_src  ? forward->_src->name  : "*";
        d = forward->_dest ? forward->_dest->name : "*";
 
-       if (forward->name)
-               info("   * Forward '%s'", forward->name);
-       else
-               info("   * Forward %s->%s", s, d);
+       info("   * Forward '%s' -> '%s'", s, d);
 
        if (!fw3_is_family(forward->_src, family) ||
            !fw3_is_family(forward->_dest, family))