Skip to content

Commit

Permalink
Replace XRT_PRINTF with XRT_DEBUGF (#8195)
Browse files Browse the repository at this point in the history
Co-authored-by: dezhliao <[email protected]>
  • Loading branch information
dezhiAmd and dezhliao authored May 23, 2024
1 parent cd2f2f7 commit bef6dc8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/runtime_src/core/common/api/xrt_module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -963,7 +963,7 @@ class module_sram : public module_impl
void
create_instr_buf(const module_impl* parent)
{
XRT_PRINTF("-> module_sram::create_instr_buf()\n");
XRT_DEBUGF("-> module_sram::create_instr_buf()\n");
const auto& data = parent->get_instr();
size_t sz = data.size();
if (sz == 0)
Expand Down Expand Up @@ -1002,18 +1002,18 @@ class module_sram : public module_impl
if (m_ctrlpkt_bo) {
patch_instr(m_instr_bo, Control_Packet_Symbol, 0, m_ctrlpkt_bo, patcher::buf_type::ctrltext);
}
XRT_PRINTF("<- module_sram::create_instr_buf()\n");
XRT_DEBUGF("<- module_sram::create_instr_buf()\n");
}

void
create_ctrlpkt_buf(const module_impl* parent)
{
XRT_PRINTF("-> module_sram::create_ctrlpkt_buf()\n");
XRT_DEBUGF("-> module_sram::create_ctrlpkt_buf()\n");
const auto& data = parent->get_ctrlpkt();
size_t sz = data.size();

if (sz == 0) {
XRT_PRINTF("ctrlpkt buf is empty\n");
XRT_DEBUGF("ctrlpkt buf is empty\n");
}
else {
// create bo combined size of all ctrlcodes
Expand All @@ -1027,7 +1027,7 @@ class module_sram : public module_impl
dump_bo(m_ctrlpkt_bo, "ctrlpktBo.bin");
#endif

XRT_PRINTF("<- module_sram::create_ctrlpkt_buffer()\n");
XRT_DEBUGF("<- module_sram::create_ctrlpkt_buffer()\n");
}
}

Expand All @@ -1036,7 +1036,7 @@ class module_sram : public module_impl
void
create_instruction_buffer(const module_impl* parent)
{
XRT_PRINTF("-> module_sram::create_instruction_buffer()\n");
XRT_DEBUGF("-> module_sram::create_instruction_buffer()\n");
const auto& data = parent->get_data();

// create bo combined size of all ctrlcodes
Expand All @@ -1053,7 +1053,7 @@ class module_sram : public module_impl
// copy ctrlcodes into bo
fill_instruction_buffer(m_buffer, data);

XRT_PRINTF("<- module_sram::create_instruction_buffer()\n");
XRT_DEBUGF("<- module_sram::create_instruction_buffer()\n");
}

virtual void
Expand Down

0 comments on commit bef6dc8

Please sign in to comment.