def validate_pp(header, length, rawdump):
    """
    Validates PowerPlay master table header
    """
    pp_frev = header.ucTableFormatRevision
    pp_crev = header.ucTableContentRevision
    pp_len = header.usStructureSize
    if pp_len != length:
        msg = ('ERROR: Header length ({}) diffes from file length ({}). ' +
            'Is this a valid PowerPlay table?')
        print(msg.format(pp_len, length))
        return None
    if rawdump:
        msg = 'PowerPlay table rev {}.{} size {} bytes'
        print(msg.format(pp_frev, pp_crev, pp_len))
    return pp_frev, pp_crev
