Skip to content

Commit

Permalink
Clean up some uninteresting log spam.
Browse files Browse the repository at this point in the history
  • Loading branch information
awesomekling committed Feb 6, 2019
1 parent 39c3b11 commit 353b191
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 16 deletions.
2 changes: 1 addition & 1 deletion Kernel/BochsVGADevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions Kernel/IDEDiskDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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));
Expand Down
3 changes: 1 addition & 2 deletions Kernel/MemoryManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down Expand Up @@ -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;
}
Expand Down
4 changes: 1 addition & 3 deletions Kernel/Syscall.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion Kernel/i8253.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
2 changes: 0 additions & 2 deletions LibGUI/GWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand All @@ -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;
Expand Down
2 changes: 0 additions & 2 deletions Terminal/Terminal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
3 changes: 0 additions & 3 deletions Terminal/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)");
Expand All @@ -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);
}
}

Expand Down

0 comments on commit 353b191

Please sign in to comment.