bitkeeper revision 1.7.3.58 (3e14aa78jPxKgtkJQt93U8n0Lfr_Og)

debug
This commit is contained in:
lynx@idefix.cl.cam.ac.uk committed 2003-01-02 21:09:12 +00:00
1 parent d4496bbfbc
commit be31a5d615
2 files changed
+2 -4

No files matched your search

@@ -174,8 +174,6 @@ static ssize_t dom_mem_read(struct file * file, char * buff, size_t size, loff_t
addr = direct_mmap(mem_data->pfn << PAGE_SHIFT, mem_data->tot_pages << PAGE_SHIFT, prot, 0, 0);
printk(KERN_ALERT "bd240 debug: dom_mem_read: %lx, %lx @ %lx\n", mem_data->pfn << PAGE_SHIFT, mem_data->tot_pages << PAGE_SHIFT, addr);
//addr = direct_mmap(mem_data->pfn, mem_data->tot_pages << PAGE_SHIFT, prot, 1,
// mem_data->tot_pages);
copy_to_user((unsigned long *)buff, &addr, sizeof(addr));
printk(KERN_ALERT "bd240 debug: exiting dom_mem_read\n");
@@ -184,10 +184,10 @@ unsigned long direct_mmap(unsigned long phys_addr, unsigned long size,
entry = find_direct(&current->mm->context.direct_list, addr);
if(entry != &current->mm->context.direct_list){
list_add_tail(&dmmap->list, entry);
printk(KERN_ALERT "bd240 debug: added node %lx in the middle\n", dmmap->vm_start);
printk(KERN_ALERT "bd240 debug: added node %lx, size %lx in the middle\n", dmmap->vm_start, size);
} else {
list_add_tail(&dmmap->list, &current->mm->context.direct_list);
printk(KERN_ALERT "bd240 debug: added node %lx at tail\n", dmmap->vm_start);
printk(KERN_ALERT "bd240 debug: added node %lx, size %lx at tail\n", dmmap->vm_start, size);
}
/* and perform the mapping */
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.