print gpu addr in hex format

This commit is contained in:
Marcel Lütke Dreimann
2022-10-07 14:19:06 +02:00
parent 019f37d1f7
commit d414436ef8

View File

@@ -81,14 +81,14 @@ int Session_component::start_task(unsigned long kconf)
{
Genode::log("\t\tvaddr: ", (void*)kc->buffConfigs[i].buffer);
Genode::log("\t\tval: ", *((uint32_t*)(kc->buffConfigs[i].buffer)));
Genode::log("\t\tgpuaddr: ", (uint32_t)kc->buffConfigs[i].ga); // to print this, temporary make the var public
Genode::log("\t\tgpuaddr: ", (void*)((addr_t)kc->buffConfigs[i].ga)); // to print this, temporary make the var public
Genode::log("\t\tpos: ", (uint32_t)kc->buffConfigs[i].pos); // to print this, temporary make the var public
}
else
{
Genode::log("\t\tvaddr: ", (void*)((Genode::addr_t)kc->buffConfigs[i].buffer - base + mapped_base));
Genode::log("\t\tpaddr: ", (void*)kc->buffConfigs[i].buffer);
Genode::log("\t\tgpuaddr: ", (uint32_t)kc->buffConfigs[i].ga); // to print this, temporary make the var public
Genode::log("\t\tgpuaddr: ", (void*)((addr_t)kc->buffConfigs[i].ga)); // to print this, temporary make the var public
Genode::log("\t\tpos: ", (uint32_t)kc->buffConfigs[i].pos); // to print this, temporary make the var public
}
Genode::log("\t\tsize: ", (int)kc->buffConfigs[i].buffer_size);