X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fodp-util.c;h=e82006bc797dbd04c4cda0a9c9ffe75cbb3ecef5;hb=42bb6c72b58ba99e59e740f8cca4e201d7efaa02;hp=973490dc8ef14003ae55374f8ae7b1cca278ee58;hpb=535d6987a7af3bef33bf2db21b52bb81e3ea64ee;p=openvswitch diff --git a/lib/odp-util.c b/lib/odp-util.c index 973490dc..e82006bc 100644 --- a/lib/odp-util.c +++ b/lib/odp-util.c @@ -256,7 +256,7 @@ format_odp_key_attr(const struct nlattr *a, struct ds *ds) switch (nl_attr_type(a)) { case ODP_KEY_ATTR_TUN_ID: - ds_put_format(ds, "tun_id(%#"PRIx64")", nl_attr_get_be64(a)); + ds_put_format(ds, "tun_id(%#"PRIx64")", ntohll(nl_attr_get_be64(a))); break; case ODP_KEY_ATTR_IN_PORT: