[PATCH 11/13] display_options: Split print_buffer() into two functions