diff options
author | Roland McGrath <roland@gnu.org> | 1999-05-15 22:14:40 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1999-05-15 22:14:40 +0000 |
commit | 658dc14c319104e6d11e425d1cd3ceab5a754ea8 (patch) | |
tree | 649c4b4a2a3c1a09b6e76c173f58d6c95541b2a9 /serverboot/default_pager.c | |
parent | 6c4bc2723fa9f471045d2e1f0bfb9f67d4b87fd5 (diff) |
1999-05-15 Roland McGrath <roland@baalperazim.frob.com>
* default_pager.c (new_partition): Print out partition name and size
when no signature.
Diffstat (limited to 'serverboot/default_pager.c')
-rw-r--r-- | serverboot/default_pager.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/serverboot/default_pager.c b/serverboot/default_pager.c index eedd105e..8fb8dfe1 100644 --- a/serverboot/default_pager.c +++ b/serverboot/default_pager.c @@ -303,7 +303,7 @@ new_partition (const char *name, struct file_direct *fdp, printf (" (excludes %uk marked bad)", hdr->nr_badpages * (LINUX_PAGE_SIZE / 1024)); if (waste != 0) - printf (" (excludes %uk pages at end of partition)", + printf (" (excludes %uk at end of partition)", waste * (LINUX_PAGE_SIZE / 1024)); printf ("\n"); } @@ -313,9 +313,15 @@ new_partition (const char *name, struct file_direct *fdp, { part = 0; printf ("(default pager): " - "Cannot find Linux swap signature page! SKIPPING %s!", - name); + "Cannot find Linux swap signature page! " + "SKIPPING %s (%uk partition)!", + name, part->total_size * (vm_page_size / 1024)); } + else + printf("(default pager): " + "Paging to raw partition %s (%uk paging space)\n", + name, part->total_size * (vm_page_size / 1024)); + vm_deallocate(mach_task_self(), raddr, rsize); return part; |