Use more standardised format specifiers in debug messages (e.g. %p for