nbls: add some log messages
nbls: rename printlog() to trace()

As is the convention in my code.
nbls: use format_name() more