Format warning message.