diff options
Diffstat (limited to 'vm')
-rw-r--r-- | vm/vm_map.c | 8 | ||||
-rw-r--r-- | vm/vm_page.c | 10 |
2 files changed, 9 insertions, 9 deletions
diff --git a/vm/vm_map.c b/vm/vm_map.c index 7e91f9eb..217aae7a 100644 --- a/vm/vm_map.c +++ b/vm/vm_map.c @@ -31,7 +31,7 @@ #include <kern/mutex.h> #include <kern/panic.h> #include <kern/param.h> -#include <kern/printk.h> +#include <kern/printf.h> #include <kern/rbtree.h> #include <machine/pmap.h> #include <vm/vm_adv.h> @@ -751,7 +751,7 @@ vm_map_info(struct vm_map *map) mutex_lock(&map->lock); - printk("vm_map: %s: %016lx-%016lx\n" + printf("vm_map: %s: %016lx-%016lx\n" "vm_map: start end " "size offset flags type\n", name, (unsigned long)map->start, (unsigned long)map->end); @@ -763,13 +763,13 @@ vm_map_info(struct vm_map *map) type = "object"; } - printk("vm_map: %016lx %016lx %8luk %08llx %08x %s\n", + printf("vm_map: %016lx %016lx %8luk %08llx %08x %s\n", (unsigned long)entry->start, (unsigned long)entry->end, (unsigned long)(entry->end - entry->start) >> 10, (unsigned long long)entry->offset, entry->flags, type); } - printk("vm_map: total: %zuk\n", map->size >> 10); + printf("vm_map: total: %zuk\n", map->size >> 10); mutex_unlock(&map->lock); } diff --git a/vm/vm_page.c b/vm/vm_page.c index cbbfd137..138f028a 100644 --- a/vm/vm_page.c +++ b/vm/vm_page.c @@ -41,7 +41,7 @@ #include <kern/mutex.h> #include <kern/panic.h> #include <kern/param.h> -#include <kern/printk.h> +#include <kern/printf.h> #include <kern/sprintf.h> #include <kern/thread.h> #include <machine/cpu.h> @@ -512,7 +512,7 @@ vm_page_load(unsigned int zone_index, phys_addr_t start, phys_addr_t end) zone->heap_present = false; #if DEBUG - printk("vm_page: load: %s: %llx:%llx\n", + printf("vm_page: load: %s: %llx:%llx\n", vm_page_zone_name(zone_index), (unsigned long long)start, (unsigned long long)end); #endif @@ -539,7 +539,7 @@ vm_page_load_heap(unsigned int zone_index, phys_addr_t start, phys_addr_t end) zone->heap_present = true; #if DEBUG - printk("vm_page: heap: %s: %llx:%llx\n", + printf("vm_page: heap: %s: %llx:%llx\n", vm_page_zone_name(zone_index), (unsigned long long)start, (unsigned long long)end); #endif @@ -664,7 +664,7 @@ vm_page_setup(void) } table_size = vm_page_round(nr_pages * sizeof(struct vm_page)); - printk("vm_page: page table size: %zu entries (%zuk)\n", nr_pages, + printf("vm_page: page table size: %zu entries (%zuk)\n", nr_pages, table_size >> 10); table = vm_page_bootalloc(table_size); va = (uintptr_t)table; @@ -782,7 +782,7 @@ vm_page_info(void) for (i = 0; i < vm_page_zones_size; i++) { zone = &vm_page_zones[i]; pages = (unsigned long)(zone->pages_end - zone->pages); - printk("vm_page: %s: pages: %lu (%luM), free: %lu (%luM)\n", + printf("vm_page: %s: pages: %lu (%luM), free: %lu (%luM)\n", vm_page_zone_name(i), pages, pages >> (20 - PAGE_SHIFT), zone->nr_free_pages, zone->nr_free_pages >> (20 - PAGE_SHIFT)); } |