How to edit field name in print method

In reply to rakesh2learn:

You should never use the `uvm_field_* macros. They are very inefficient and difficult to debug. Instead, you should instead be implementing the required transaction methods as described here.

You will be able to modify your do_print() method to meet your requirements.