Improve debug output.

Signed-off-by: Robin H. Johnson <rjohnson@sitka.bclibraries.ca>