Remember that your response to students should not cause more disruption to the teaching and learning environment than the disruptive behavior itself.
A casual tone of conversation in the classroom builds rapport with students. However, teachers need to adjust to a more formal register to communicate a sense of urgency and stress the importance of his or her message.
Give the student the opportunity to correct his/her own behavior before any more public intervention.