X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fodp-util.c;h=af464a0409508a354fe1e16135dce342bfa2d424;hb=003ce655b7116d18c86a74c50391e54990346931;hp=9a4ea5e062908efe64a0d9fb6679ea8d618f266d;hpb=fbfe01de0dedaf6d5b909b1a977d1f8164243754;p=sliver-openvswitch.git diff --git a/lib/odp-util.c b/lib/odp-util.c index 9a4ea5e06..af464a040 100644 --- a/lib/odp-util.c +++ b/lib/odp-util.c @@ -399,7 +399,7 @@ format_odp_hash_action(struct ds *ds, const struct ovs_action_hash *hash_act) ds_put_format(ds, "hash("); if (hash_act->hash_alg == OVS_HASH_ALG_L4) { - ds_put_format(ds, "hash_l4(%"PRIu32")", hash_act->hash_bias); + ds_put_format(ds, "hash_l4(%"PRIu32")", hash_act->hash_basis); } else { ds_put_format(ds, "Unknown hash algorithm(%"PRIu32")", hash_act->hash_alg); @@ -1319,7 +1319,7 @@ format_odp_key_attr(const struct nlattr *a, const struct nlattr *ma, } else { const struct ovs_key_sctp *sctp_key = nl_attr_get(a); - ds_put_format(ds, "(src=%"PRIu16",dst=%"PRIu16")", + ds_put_format(ds, "src=%"PRIu16",dst=%"PRIu16, ntohs(sctp_key->sctp_src), ntohs(sctp_key->sctp_dst)); } break;