Commit 6543adbd authored by Greg Ungerer's avatar Greg Ungerer Committed by Steve French

[PATCH] cleanup show_process_blocks() for non-mmu targets

Clean up show_process_blocks() loop for non-mmu targets.
parent a7eec8d9
...@@ -250,23 +250,16 @@ static inline unsigned long calc_vm_flags(unsigned long prot, unsigned long flag ...@@ -250,23 +250,16 @@ static inline unsigned long calc_vm_flags(unsigned long prot, unsigned long flag
#ifdef DEBUG #ifdef DEBUG
static void show_process_blocks(void) static void show_process_blocks(void)
{ {
struct mm_tblock_struct * tblock, *tmp; struct mm_tblock_struct *tblock;
printk("Process blocks %d:", current->pid); printk("Process blocks %d:", current->pid);
tmp = current->mm->context.tblock; for (tblock = &current->mm->context.tblock; tblock; tblock = tblock->next) {
while (tmp) { printk(" %p: %p", tblock, tblock->rblock);
printk(" %p: %p", tmp, tmp->rblock); if (tblock->rblock)
if (tmp->rblock) printk(" (%d @%p #%d)", kobjsize(tblock->rblock->kblock), tblock->rblock->kblock, tblock->rblock->refcount);
printk(" (%d @%p #%d)", kobjsize(tmp->rblock->kblock), printk(tblock->next ? " ->" : ".\n");
tmp->rblock->kblock, tmp->rblock->refcount);
if (tmp->next)
printk(" ->");
else
printk(".");
tmp = tmp->next;
} }
printk("\n");
} }
#endif /* DEBUG */ #endif /* DEBUG */
...@@ -355,7 +348,7 @@ unsigned long do_mmap_pgoff( ...@@ -355,7 +348,7 @@ unsigned long do_mmap_pgoff(
error = file->f_op->mmap(file, &vma); error = file->f_op->mmap(file, &vma);
#ifdef DEBUG #ifdef DEBUG
printk("mmap mmap returned %d /%x\n", error, vma.vm_start); printk("f_op->mmap() returned %d/%lx\n", error, vma.vm_start);
#endif #endif
if (!error) if (!error)
return vma.vm_start; return vma.vm_start;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment