- wrbuf_printf(w, "{");
- while (ip && *ip >= 0)
- wrbuf_printf(w, " %d", *(ip++));
- wrbuf_printf(w, " }\n");
+ char oid_name_str[OID_STR_MAX];
+ oid_class oclass;
+ const char *oid_name
+ = yaz_oid_to_string_buf(ip, &oclass, oid_name_str);
+
+ if (oid_name)
+ wrbuf_printf(w, "OID: %s\n", oid_name);