/* This function is called via BASE_CUSTOM, and displays the packet type code as a character like it is in the specification, rather than using BASE_DEC which shows it as an integer value.  */
static void format_packet_type(gchar *buf, guint32 value)
/* This function is called via BASE_CUSTOM, and displays the packet type code as a character like it is in the specification, rather than using BASE_DEC which shows it as an integer value.  */
static void format_packet_type(gchar *buf, guint32 value)
{
    gchar* tmp_str;
    tmp_str = val_to_str_wmem(NULL, value, pkt_type_val, "Unknown packet");
    g_snprintf(buf, ITEM_LABEL_LENGTH,
               "%s (%c)", tmp_str, (char)(value & 0xff));
    wmem_free(NULL, tmp_str);
}