Expose a function to format ping messages