diff options
| author | Greg Ungerer <gerg@snapgear.com> | 2003-07-06 23:00:19 -0700 |
|---|---|---|
| committer | Steve French <cifs.adm@hostme.bitkeeper.com> | 2003-07-06 23:00:19 -0700 |
| commit | 6543adbd85f82e5e566d24e8bd542779ec246a4c (patch) | |
| tree | 72c11840942d2745bf5a56aaf9d12b007df4159e | |
| parent | a7eec8d9269e8c879e216bfcc11a5b5fa333c250 (diff) | |
[PATCH] cleanup show_process_blocks() for non-mmu targets
Clean up show_process_blocks() loop for non-mmu targets.
| -rw-r--r-- | mm/nommu.c | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/mm/nommu.c b/mm/nommu.c index 018262482d5a..5595fa7054f8 100644 --- a/mm/nommu.c +++ b/mm/nommu.c @@ -250,23 +250,16 @@ static inline unsigned long calc_vm_flags(unsigned long prot, unsigned long flag #ifdef DEBUG static void show_process_blocks(void) { - struct mm_tblock_struct * tblock, *tmp; - + struct mm_tblock_struct *tblock; + printk("Process blocks %d:", current->pid); - - tmp = current->mm->context.tblock; - while (tmp) { - printk(" %p: %p", tmp, tmp->rblock); - if (tmp->rblock) - printk(" (%d @%p #%d)", kobjsize(tmp->rblock->kblock), - tmp->rblock->kblock, tmp->rblock->refcount); - if (tmp->next) - printk(" ->"); - else - printk("."); - tmp = tmp->next; + + for (tblock = ¤t->mm->context.tblock; tblock; tblock = tblock->next) { + printk(" %p: %p", tblock, tblock->rblock); + if (tblock->rblock) + printk(" (%d @%p #%d)", kobjsize(tblock->rblock->kblock), tblock->rblock->kblock, tblock->rblock->refcount); + printk(tblock->next ? " ->" : ".\n"); } - printk("\n"); } #endif /* DEBUG */ @@ -355,7 +348,7 @@ unsigned long do_mmap_pgoff( error = file->f_op->mmap(file, &vma); #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 if (!error) return vma.vm_start; |
