From: Ben Pfaff Date: Tue, 13 Apr 2010 23:50:31 +0000 (-0700) Subject: odp-util: Print bad action numbers in hexadecimal in format_odp_action(). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd05c6ad2fdcedce229f962ca29c167287b9b21b;p=openvswitch 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. --- 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; } }