Note on an additive characterization of quadratic residues modulo p