from io import StringIO


def dump_data(data):
    """
    Print hex value of data in form 'hex/decimal'
    :param data: bytes data
    :return: pretty printed hex/decimal string of data
    """
    buf = StringIO()
    for index in range(len(data)):
        buf.write("%x/%d " % (data[index], data[index]))
        if (index + 1) % 8 == 0:
            buf.write("\t")
        if (index + 1) % 16 == 0:
            buf.write("\n")
    if len(data) > 0 and buf.getvalue()[-1] != '\n':
        buf.write("\n")
    return buf.getvalue()