Small refactoring.
Bad debug print: %d -> %s.