Fix multi-line string formatting in $sformatf for uvm_fatal macro

Before the change the indentation of the second line would be printed as spaces
in the fatal message.
This commit is contained in:
Harry Callahan 2022-06-07 11:53:56 +01:00 committed by hcallahan-lowrisc
parent 15230d2c86
commit 81590d86c2

View file

@ -400,8 +400,8 @@ class core_ibex_debug_intr_basic_test extends core_ibex_base_test;
end
begin : ret_timeout
clk_vif.wait_clks(timeout);
`uvm_fatal(`gfn, $sformatf("No %0s detected, or incorrect privilege mode switch in \
timeout period of %0d cycles", ret, timeout))
`uvm_fatal(`gfn, $sformatf({"No %0s detected, or incorrect privilege mode switch in ",
"timeout period of %0d cycles"}, ret, timeout))
end
join_any
// Will only get here if dret successfully detected within timeout period