mm: introduce helper function mem_init_print_info() to simplify mem_init()