use correct conversion specifier in debug logging