Clean up some uninteresting log spam.

This commit is contained in:
Andreas Kling 2019-02-06 11:32:23 +01:00
parent 39c3b117c9
commit 353b191a49
Notes: sideshowbarker 2024-07-19 15:51:08 +09:00
8 changed files with 6 additions and 16 deletions

View file

@ -61,7 +61,7 @@ dword BochsVGADevice::find_framebuffer_address()
PCI::enumerate_all([&framebuffer_address] (const PCI::Address& address, PCI::ID id) {
if (id == bochs_vga_id || id == virtualbox_vga_id) {
framebuffer_address = PCI::get_BAR0(address) & 0xfffffff0;
kprintf("BochsVGA framebuffer @ PCI %w:%w BAR0=%x\n", id.vendor_id, id.device_id, framebuffer_address);
kprintf("BochsVGA: framebuffer @ P%x\n", framebuffer_address);
}
});
return framebuffer_address;

View file

@ -154,7 +154,7 @@ void IDEDiskDevice::initialize()
m_sectors_per_track = wbufbase[6];
kprintf(
"ide0: Master=\"%s\", C/H/Spt=%u/%u/%u\n",
"IDEDiskDevice: Master=\"%s\", C/H/Spt=%u/%u/%u\n",
bbuf.pointer() + 54,
m_cylinders,
m_heads,
@ -187,7 +187,7 @@ bool IDEDiskDevice::read_sectors(dword start_sector, word count, byte* outbuf)
while (IO::in8(IDE0_STATUS) & BUSY);
#ifdef DISK_DEBUG
kprintf("ide0: Reading %u sector(s) @ LBA %u (%u/%u/%u)\n", count, start_sector, chs.cylinder, chs.head, chs.sector);
kprintf("IDEDiskDevice: Reading %u sector(s) @ LBA %u (%u/%u/%u)\n", count, start_sector, chs.cylinder, chs.head, chs.sector);
#endif
IO::out8(0x1F2, count == 256 ? 0 : LSB(count));

View file

@ -42,7 +42,6 @@ MemoryManager::~MemoryManager()
PageDirectory::PageDirectory(PhysicalAddress paddr)
{
kprintf("Instantiating PageDirectory with specific paddr P%x\n", paddr.get());
m_directory_page = adopt(*new PhysicalPage(paddr, true));
}
@ -311,7 +310,7 @@ bool MemoryManager::page_in_from_inode(Region& region, unsigned page_index_in_re
cli();
if (!vmo_page.is_null()) {
kprintf("MM: page_in_from_inode() but page already present. Fine with me!\n");
dbgprintf("MM: page_in_from_inode() but page already present. Fine with me!\n");
remap_region_page(region, page_index_in_region, true);
return true;
}

View file

@ -41,7 +41,7 @@ namespace Syscall {
void initialize()
{
register_user_callable_interrupt_handler(0x80, syscall_trap_handler);
kprintf("syscall: int 0x80 handler installed\n");
kprintf("Syscall: int 0x80 handler installed\n");
}
int sync()
@ -79,10 +79,8 @@ static dword handle(RegisterDump& regs, dword function, dword arg1, dword arg2,
case Syscall::SC_write:
return current->sys$write((int)arg1, (const void*)arg2, (size_t)arg3);
case Syscall::SC_close:
//kprintf("syscall: close(%d)\n", arg1);
return current->sys$close((int)arg1);
case Syscall::SC_read:
//kprintf("syscall: read(%d, %p, %u)\n", arg1, arg2, arg3);
return current->sys$read((int)arg1, (void*)arg2, (size_t)arg3);
case Syscall::SC_lseek:
return current->sys$lseek((int)arg1, (off_t)arg2, (int)arg3);

View file

@ -83,7 +83,7 @@ void initialize()
timer_reload = (BASE_FREQUENCY / TICKS_PER_SECOND);
kprintf("PIT(i8253): %u Hz, square wave (%x)\n", TICKS_PER_SECOND, timer_reload);
kprintf("PIT: %u Hz, square wave (%x)\n", TICKS_PER_SECOND, timer_reload);
IO::out8(TIMER0_CTL, LSB(timer_reload));
IO::out8(TIMER0_CTL, MSB(timer_reload));

View file

@ -82,7 +82,6 @@ void GWindow::hide()
void GWindow::set_title(String&& title)
{
dbgprintf("GWindow::set_title \"%s\"\n", title.characters());
m_title_when_windowless = title;
if (m_window_id) {
int rc = gui_set_window_title(m_window_id, title.characters(), title.length());
@ -106,7 +105,6 @@ String GWindow::title() const
void GWindow::set_rect(const Rect& a_rect)
{
dbgprintf("GWindow::set_rect! %d,%d %dx%d\n", a_rect.x(), a_rect.y(), a_rect.width(), a_rect.height());
m_rect_when_windowless = a_rect;
if (m_window_id) {
GUI_Rect rect = a_rect;

View file

@ -37,8 +37,6 @@ void Terminal::create_window()
}
m_backing = GraphicsBitmap::create_wrapper(info.size, info.pixels);
dbgprintf("(Terminal:%d) window backing %ux%u @ %p\n", getpid(), info.size.width, info.size.height, info.pixels);
}
Terminal::Terminal()

View file

@ -26,7 +26,6 @@ static void make_shell(int ptm_fd)
int rc = 0;
close(ptm_fd);
int pts_fd = open(tty_name, O_RDWR);
dbgprintf("*** In child (%d), opening slave pty %s, pts_fd=%d\n", getpid(), tty_name, pts_fd);
rc = ioctl(0, TIOCNOTTY);
if (rc < 0) {
perror("ioctl(TIOCNOTTY)");
@ -50,8 +49,6 @@ static void make_shell(int ptm_fd)
exit(1);
}
ASSERT_NOT_REACHED();
} else {
dbgprintf("*** In parent, child is %d\n", pid);
}
}