[ovs-dev] [PATCH] ofp-print.c: Fix remaining port number prints.

Ben Pfaff blp at nicira.com
Tue Jan 15 19:17:31 UTC 2013


On Mon, Jan 14, 2013 at 02:43:53PM +0200, Jarno Rajahalme wrote:
> Use ofputil_format_port() to print port numbers so that special ports
> will be printed out as symbolic names (e.g., LOCAL) instead of numbers.
> 
> 
> Signed-off-by: Jarno Rajahalme <jarno.rajahalme at nsn.com>

Thanks, applied.

I made one stylistic change:

diff --git a/lib/ofp-print.c b/lib/ofp-print.c
index 6dd55a9..b97180e 100644
--- a/lib/ofp-print.c
+++ b/lib/ofp-print.c
@@ -569,8 +569,9 @@ static void print_wild(struct ds *string, const char *leader, int is_wild,
     ds_put_char(string, ',');
 }
 
-static void print_wild_port(struct ds *string, const char *leader, int is_wild,
-                            int verbosity, uint16_t port)
+static void
+print_wild_port(struct ds *string, const char *leader, int is_wild,
+                int verbosity, uint16_t port)
 {
     if (is_wild && verbosity < 2) {
         return;



More information about the dev mailing list