I took out a 401k loan last year It says year to date deductions with 401k loan on top of w2 with how much I have paid back with each check Will I receive a 1099r?

Im not sure if I will be penalized for it or not since it states it was a loan.