Changeset 2b8b0ca in mainline for kernel/generic/src/mm/as.c


Ignore:
Timestamp:
2008-06-03T14:46:49Z (17 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
93a3348
Parents:
0f269c2
Message:

proper printf formatting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/mm/as.c

    r0f269c2 r2b8b0ca  
    454454                                        cond = false;   /* we are almost done */
    455455                                        i = (start_free - b) >> PAGE_WIDTH;
    456                                         if (!used_space_remove(area, start_free,
    457                                             c - i))
    458                                                 panic("Could not remove used "
    459                                                     "space.\n");
     456                                        if (!used_space_remove(area, start_free, c - i))
     457                                                panic("Could not remove used space.\n");
    460458                                } else {
    461459                                        /*
     
    464462                                         */
    465463                                        if (!used_space_remove(area, b, c))
    466                                                 panic("Could not remove used "
    467                                                     "space.\n");
     464                                                panic("Could not remove used space.\n");
    468465                                }
    469466                       
     
    15291526        }
    15301527
    1531         panic("Inconsistency detected while adding %d pages of used space at "
     1528        panic("Inconsistency detected while adding %" PRIc " pages of used space at "
    15321529            "%p.\n", count, page);
    15331530}
     
    17081705
    17091706error:
    1710         panic("Inconsistency detected while removing %d pages of used space "
     1707        panic("Inconsistency detected while removing %" PRIc " pages of used space "
    17111708            "from %p.\n", count, page);
    17121709}
     
    18011798               
    18021799                        mutex_lock(&area->lock);
    1803                         printf("as_area: %p, base=%p, pages=%d (%p - %p)\n",
     1800                        printf("as_area: %p, base=%p, pages=%" PRIc " (%p - %p)\n",
    18041801                            area, area->base, area->pages, area->base,
    1805                             area->base + area->pages*PAGE_SIZE);
     1802                            area->base + FRAMES2SIZE(area->pages));
    18061803                        mutex_unlock(&area->lock);
    18071804                }
Note: See TracChangeset for help on using the changeset viewer.