human
Solve the following python programming problem given the following code:
def isSane(totalLen, payloadLen, flags) : 
    "
    Verifies whether the given header fields are sane.

    The values of the fields `totalLen', `payloadLen' and `flags' are checked
    for their sanity.  If they are in the expected range, `True' is returned.
    If any of these fields has an invalid value, `False' is returned.
    " 
    def isFine(length) : 
        '
        Check if the given length is fine.
        ' 
        return (True if (0 <= length <= const.MPU) else False) 
log.debug (('Message header: totalLen=%d, payloadLen=%d, flags=%s' % (totalLen, totalLen, getFlagNames (flags)))) 
    validFlags = [const.FLAG_PAYLOAD, const.FLAG_NEW_TICKET, const.FLAG_PRNG_SEED] 
    return (isFine (totalLen) and isFine (payloadLen) and (totalLen >= payloadLen) and (flags in validFlags)) 

    
    

    Fix the buggy line: log.debug (('Message header: totalLen=%d, payloadLen=%d, flags=%s' % (totalLen, totalLen, getFlagNames (flags))))
assistant
#Here is Python program to fix the buggy line: log.

log.debug (('Message header: totalLen=%d, payloadLen=%d, flags=%s' % (totalLen, payloadLen, getFlagNames (flags))))