Dynamic generation of pager size

This commit is contained in:
Amit Mahajan
2009-11-01 23:41:49 +05:30
parent 8d9f5f82d0
commit 55eb6260c3
8 changed files with 93 additions and 41 deletions

View File

@@ -142,8 +142,8 @@ int init_pager(struct pager *pager,
cap->resid = CAP_RESID_NONE;
}
printk("%s: Mapping %lu pages from 0x%lx to 0x%lx for %s\n",
__KERNELNAME__,
printk("%s: Mapping %lx bytes (%lx pages) from 0x%lx to 0x%lx for %s\n",
__KERNELNAME__, pager->memsize,
__pfn(page_align_up(pager->memsize)),
pager->start_lma, pager->start_vma, cont->name);