[ovs-dev] [PATCH 3/3] odp-util: Print bad action numbers in hexadecimal in format_odp_action().
Justin Pettit
jpettit at nicira.com
Wed Apr 14 00:22:58 UTC 2010
This set looks good to me.
--Justin
On Apr 13, 2010, at 4:50 PM, Ben Pfaff wrote:
> 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 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/lib/odp-util.c b/lib/odp-util.c
> index 87ac92b..67ce413 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;
> }
> }
> --
> 1.6.6.1
>
>
> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> http://openvswitch.org/mailman/listinfo/dev_openvswitch.org
More information about the dev
mailing list