Skip to content

Commit

Permalink
Kernel: Stop spamming the kernel log buffer when loading ksyms.
Browse files Browse the repository at this point in the history
  • Loading branch information
awesomekling committed Feb 6, 2019
1 parent 6cba805 commit 26f4301
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Kernel/KSyms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ static void load_ksyms_from_data(const ByteBuffer& buffer)
s_ksyms = static_cast<KSym*>(kmalloc_eternal(sizeof(KSym) * ksym_count));
++bufptr; // skip newline

kprintf("Loading ksyms: \033[s");
kprintf("Loading ksyms...");

unsigned current_ksym_index = 0;

Expand All @@ -64,12 +64,10 @@ static void load_ksyms_from_data(const ByteBuffer& buffer)
if (ksym.address > ksym_highest_address)
ksym_highest_address = ksym.address;

if ((current_ksym_index % 10) == 0 || ksym_count == current_ksym_index)
kprintf("\033[u\033[s%u/%u", current_ksym_index, ksym_count);
++bufptr;
++current_ksym_index;
}
kprintf("\n");
kprintf("ok\n");
ksyms_ready = true;
}

Expand Down

0 comments on commit 26f4301

Please sign in to comment.