def format_bytes_for_logging(data):
    """Present data as a printable string.

    :param data: zero or more characters or bytes
    :type data: str or bytes
    :return: string representation
    :rtype: str
    """
    return repr(data)[1:]
