How to add leading zeros to a transaction print?

In reply to Raj Thummar:

The UVM does not let you do this because the underlying uvm_field_int macros treat all integral values as 4096 bit packed array (See 0004999: uvm_printer doesn't provide mechanism for printing leading zeros - Accellera Mantis).

You would be much better off formatting the string yourself then trying to get the field automation macros to do it for you.