def dict_updates(old, new):
    """ This function reports updates to a dict.

    :param old: A dictionary to compare against.
    :param new: A dictionary with potential changes.

    :returns: A dictionary with the updates if any.
    """
    updates = {}

    for k in set(new.keys()).intersection(set(old.keys())):
        if old[k] != new[k]:
            updates.update({k: new[k]})

    return updates