struct shader_window *window = xtzalloc(*window);
snprintf(window->base.name, sizeof(window->base.name),
- "%s (0x%lx)##%p", desc, address, window);
+ "%s (0x%" PRIx64 ")##%p", desc, address, window);
list_inithead(&window->base.parent_link);
window->base.position = ImVec2(-1, -1);
struct urb_window *window = xtzalloc(*window);
snprintf(window->base.name, sizeof(window->base.name),
- "URB view (0x%lx)##%p", address, window);
+ "URB view (0x%" PRIx64 ")##%p", address, window);
list_inithead(&window->base.parent_link);
window->base.position = ImVec2(-1, -1);
window->address);
ImGui::EndChild();
} else {
- ImGui::Text("Memory view at 0x%lx not available", window->address);
+ ImGui::Text("Memory view at 0x%" PRIx64 " not available", window->address);
}
}
struct edit_window *window = xtzalloc(*window);
snprintf(window->base.name, sizeof(window->base.name),
- "Editing aub at 0x%lx##%p", address, window);
+ "Editing aub at 0x%" PRIx64 "##%p", address, window);
list_inithead(&window->base.parent_link);
window->base.position = ImVec2(-1, -1);
uint64_t entry_virt_addr = table_virt_addr + e * addr_increment;
if (!available)
continue;
- ImGui::Text("Entry%03i - phys_addr=0x%lx - virt_addr=0x%lx",
+ ImGui::Text("Entry%03i - phys_addr=0x%" PRIx64 " - virt_addr=0x%" PRIx64,
e, table[e], entry_virt_addr);
}
} else {
if (available &&
ImGui::TreeNodeEx(&table[e],
available ? ImGuiTreeNodeFlags_Framed : 0,
- "Entry%03i - phys_addr=0x%lx - virt_addr=0x%lx",
+ "Entry%03i - phys_addr=0x%" PRIx64 " - virt_addr=0x%" PRIx64,
e, table[e], entry_virt_addr)) {
display_pml4_level(mem, table[e] & ~0xffful, entry_virt_addr, level -1);
ImGui::TreePop();
{
struct pml4_window *window = (struct pml4_window *) win;
- ImGui::Text("pml4: %lx", window->mem->pml4);
+ ImGui::Text("pml4: %" PRIx64, window->mem->pml4);
ImGui::BeginChild(ImGui::GetID("##block"));
display_pml4_level(window->mem, window->mem->pml4, 0, 4);
ImGui::EndChild();