Need Help in Casting in `uvm_info

In reply to chr_sue:

In reply to MaheshBabu:
counter1 is a uvm_object with several data fields. Using the object name for displaying the name will not work. But the uvm_reg provides you with a convinient function to display the name: get_name().

Thanks for the reply Mr.chr_sue !

But if I use get_name in place of get_full_name , I ended up in compilation error which says- “%0s” is not a valid type to use.

Regards,
Mahesh