1099-R with negative earning

Hello, I made a contribution to my Roth IRA in early 2021. I ended up making more in 2021 than I expected due to stock sales at the end of the year which made me ineligible for any contribution to my Roth IRA. I had Fidelity withdraw my excess contribution and earnings in 2022. To do so, I had to liquidate some of the investments at market costs to make sure I had enough cash to withdraw. I'm going to enter form 1099-R on my 2021 taxes but my earnings were negative. What do I put in box 2a for earnings (the negative figure or do I just leave blank)? I contributed $6000 but Fidelity calculated my total contribution and earnings at $5933.80.