# Issues with do\_print() method?

**URL:** <https://verificationacademy.com/forums/t/issues-with-do-print-method/34289>\
**Category:** UVM\
**Tags:** UVM\
**Created:** [April 3, 2018, 10:19am UTC](https://verificationacademy.com/forums/t/issues-with-do-print-method/34289 "2018-04-03T10:19:25Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![chr\_sue](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/chr_sue/32/1199_2.png) [@chr\_sue](https://verificationacademy.com/forums/u/chr_sue)\
**Post date:** [March 20, 2019, 6:48am UTC](https://verificationacademy.com/forums/t/issues-with-do-print-method/34289/4 "2019-03-20T06:48:21Z")

</div>

_In reply to [npratt](https://verificationacademy.com/forums/t/issues-with-do-print-method/34289/3):_

If you are using the field macros and have implemented the do\_print manually the last one has the precedence.

Im generating my UVM Frameworks automatically, i.e. each seq\_item definition has a do\_print method like this:

```verilog
function void do_print(uvm_printer printer);
  if(printer.knobs.sprint == 0) begin
    `uvm_info(get_type_name(), convert2string(), UVM_MEDIUM)
  end else begin 
    printer.m_string = convert2string();
  end
endfunction : do_print

```

In all my projects I did (20+) I have never faced an issue like you are describing.

---

_[View the full topic](https://verificationacademy.com/forums/t/issues-with-do-print-method/34289)._
