def format_entry_pair_output(entry_pairs):
    """
    Format entry pairs into an output string
    """
    output = ''
    for entry_pair in entry_pairs:
        config_e = entry_pair[0]
        output += "Config Ref Id : %s\n" % config_e["ref_id"]
        output += "Config entry Name : %s\n" % config_e["name"]
        output += "Config gatekeeper : %s\n" % config_e["gatekeeper"]
        output += "Config rsl : %s\n" % config_e["rsl"]
        output += "Config gridtype : %s\n" % config_e["gridtype"]
                    
        infosys_e = entry_pair[1]                   
        output += "Infosys %s Id : %s\n" % (infosys_e["source_type"], infosys_e["ref_id"])
        output += "Infosys source url: %s\n" % infosys_e["source"]
        output += "Infosys site name : %s\n" % infosys_e["site_name"]
        output += "Infosys gatekeeper : %s\n" % infosys_e["gatekeeper"]
        output += "Infosys rsl : %s\n" % infosys_e["rsl"]
        output += "Infosys gridtype : %s\n" % infosys_e["gridtype"]
        output += "\n"

    return output