print_wild(&f, "in_port=", w & OFPFW_IN_PORT, verbosity,
"%d", ntohs(om->in_port));
print_wild(&f, "dl_vlan=", w & OFPFW_DL_VLAN, verbosity,
- "0x%04x", ntohs(om->dl_vlan));
+ "%d", ntohs(om->dl_vlan));
print_wild(&f, "dl_vlan_pcp=", w & OFPFW_DL_VLAN_PCP, verbosity,
"%d", om->dl_vlan_pcp);
print_wild(&f, "dl_src=", w & OFPFW_DL_SRC, verbosity,
default:
ds_put_format(string, " cmd:%d ", ntohs(ofm->command));
}
- ds_put_format(string, "cookie:%"PRIx64" idle:%d hard:%d pri:%d "
+ ds_put_format(string, "cookie:0x%"PRIx64" idle:%d hard:%d pri:%d "
"buf:%#x flags:%"PRIx16" ", ntohll(ofm->cookie),
ntohs(ofm->idle_timeout), ntohs(ofm->hard_timeout),
ofm->match.wildcards ? ntohs(ofm->priority) : (uint16_t)-1,
break;
}
ds_put_format(string,
- " cookie%"PRIx64" pri%"PRIu16" secs%"PRIu32" nsecs%"PRIu32
+ " cookie0x%"PRIx64" pri%"PRIu16" secs%"PRIu32" nsecs%"PRIu32
" idle%"PRIu16" pkts%"PRIu64" bytes%"PRIu64"\n",
ntohll(ofr->cookie),
ofr->match.wildcards ? ntohs(ofr->priority) : (uint16_t)-1,
break;
}
- ds_put_format(string, " cookie=%"PRIu64", ", ntohll(fs->cookie));
+ ds_put_format(string, " cookie=0x%"PRIx64", ", ntohll(fs->cookie));
ds_put_format(string, "duration_sec=%"PRIu32"s, ",
ntohl(fs->duration_sec));
ds_put_format(string, "duration_nsec=%"PRIu32"ns, ",