smurf: Incorporated one_snprintf

- Using new one_snprintf function
- Replaced all tabs with 4 spaces