From cd05c6ad2fdcedce229f962ca29c167287b9b21b Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 13 Apr 2010 16:50:31 -0700 Subject: [PATCH] odp-util: Print bad action numbers in hexadecimal in format_odp_action(). Given that dpif.c clears action numbers to 0xcccc it can be much less mystifying to see that instead of 52428. --- lib/odp-util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/odp-util.c b/lib/odp-util.c index 87ac92b8..67ce4132 100644 --- a/lib/odp-util.c +++ b/lib/odp-util.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009 Nicira Networks. + * Copyright (c) 2009, 2010 Nicira Networks. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -90,7 +90,7 @@ format_odp_action(struct ds *ds, const union odp_action *a) ds_put_format(ds, "set_tp_dst(%"PRIu16")", ntohs(a->tp_port.tp_port)); break; default: - ds_put_format(ds, "***bad action %"PRIu16"***", a->type); + ds_put_format(ds, "***bad action 0x%"PRIx16"***", a->type); break; } } -- 2.30.2