Checkpoint macro to handle loc and func format specifiers