Remove magic numbers in print_message_file