update print_macro