def human_readable_patch(address, data, comp = None):
    """Returns a human readable string describing the patching action.
    """

    s = "[0x%04X] returns 0x%02X" % (address, data);

    if comp is not None:
        s += " if read as 0x%02X" % comp;

    return s;