Browse Source

removed debug prints

master
Mathieu Serandour 8 months ago
parent
commit
fb75a43746
  1. 10
      kernel/drivers/pcie/scan.c
  2. 4
      kernel/fs/fat32/fat32.c
  3. 5
      kernel/fs/vfs_dirs.c
  4. 5
      kernel/memory/paging.c

10
kernel/drivers/pcie/scan.c

@ -220,15 +220,7 @@ static void new_dev(
// our struct inherits from this one
// don't worry
/*
log_info(
"ISSOU %x:%x:%x:%x",
dev->path.domain,
dev->path.bus,
dev->path.device,
dev->path.func
);
*/
callback(dev);
}

4
kernel/fs/fat32/fat32.c

@ -651,9 +651,9 @@ dirent_t* fat32_read_dir(
read(part, cluster_begin(cluster, pr), buf, pr->cluster_size);
log_warn("bufsize=%u", bufsize);
//log_warn("bufsize=%u", bufsize);
dump(buf, 512, 32, DUMP_HEX8);
//dump(buf, 512, 32, DUMP_HEX8);
for(unsigned i = 0; i < entries_per_cluster; i++) {

5
kernel/fs/vfs_dirs.c

@ -238,11 +238,6 @@ static int unmount(vdir_t *vdir) {
fs_t *fs = vdir->fs;
if(fs->type == FS_TYPE_DEVFS) {
log_warn("issou ayaooooooooooooooo");
}
if (vdir->n_children)
{
log_warn("cannot unmount partition %s: it is not a leaf partition", fs->part->name);

5
kernel/memory/paging.c

@ -485,8 +485,10 @@ static void* get_entry_or_panic(void** restrict table, unsigned index) {
void* entry = virtual_addr_table[index];
if(!present_entry(entry))
if(!present_entry(entry)) {
log_warn("trying to access non-present entry %u", index);
panic("get_entry_or_panic(): entry not present");
}
else
return entry;
}
@ -774,7 +776,6 @@ uint64_t get_user_page_map(void) {
* map table physical base address
*/
void set_user_page_map(uint64_t paddr) {
log_warn("mouais ayaoi %lx", paddr);
pml4[0] = create_table_entry(
(void*)paddr,
PRESENT_ENTRY | PL_US // execute enable, read

Loading…
Cancel
Save