At SFO, I would hestate to change the FFP # at the gate. It's often very crowded before boarding.
At Sakura lounge in SFO, I have been given a new boarding pass. I would thus think CX has some printing facility in the lounge. I think you can change it there.
SFO staff are usually very nice. It isn't like JFK.