+static void
+ofp_print_nx_error_msg(struct ds *string, const struct ofp_error_msg *oem)
+{
+ size_t len = ntohs(oem->header.length);
+ const struct nx_vendor_error *nve = (struct nx_vendor_error *)oem->data;
+ int vendor = ntohl(nve->vendor);
+ int type = ntohs(nve->type);
+ int code = ntohs(nve->code);
+
+ ds_put_format(string, " vendor:%x type:%d(%s) code:%d(%s) payload:\n",
+ vendor,
+ type, lookup_error_type(type),
+ code, lookup_error_code(type, code));
+
+ ds_put_hex_dump(string, nve + 1, len - sizeof *oem - sizeof *nve,
+ 0, true);
+}
+