odp-util: Improve formatting of bad ODP actions.
authorBen Pfaff <blp@nicira.com>
Thu, 23 Dec 2010 22:21:01 +0000 (14:21 -0800)
committerBen Pfaff <blp@nicira.com>
Tue, 28 Dec 2010 17:17:23 +0000 (09:17 -0800)
commit8ba43fbd1f14d60a2d097bafc7d0606d860d0f72
treed807d22def4d112a2c9e53905654a96bf31b004c
parent406e37ecf554529e9380ef06863d85ccc94009d1
odp-util: Improve formatting of bad ODP actions.

nla_len is the size of a Netlink attribute including its header, but we
only want to print the attribute payload, so use nl_attr_get_size()
instead.

Also, make it clear that what follows the "bad action" information is a
dump of the action itself.

Acked-by: Jesse Gross <jesse@nicira.com>
lib/odp-util.c