message: improve message printing

Fix indentation and use a better readable format for message printing.