Changeset cf85e24c in mainline for generic/src/mm


Ignore:
Timestamp:
2006-04-22T23:00:26Z (20 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
12c7f27
Parents:
e692a27
Message:

printf-related and other code cleanup

Location:
generic/src/mm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • generic/src/mm/frame.c

    re692a27 rcf85e24c  
    10291029                zone = zones.info[i];
    10301030                spinlock_lock(&zone->lock);
    1031                 printf("%d: %#X \t%zd\t\t%zd\n",i,PFN2ADDR(zone->base),
    1032                        zone->free_count, zone->busy_count);
     1031                printf("%d: %#x \t%zd\t\t%zd\n", i, PFN2ADDR(zone->base), zone->free_count, zone->busy_count);
    10331032                spinlock_unlock(&zone->lock);
    10341033        }
  • generic/src/mm/page.c

    re692a27 rcf85e24c  
    6464        int i, cnt, length;
    6565
    66         length = size + (s - (s & ~(PAGE_SIZE-1)));
    67         cnt = length/PAGE_SIZE + (length%PAGE_SIZE>0);
     66        length = size + (s - (s & ~(PAGE_SIZE - 1)));
     67        cnt = length / PAGE_SIZE + (length % PAGE_SIZE > 0);
    6868
    6969        for (i = 0; i < cnt; i++)
    70                 page_mapping_insert(AS_KERNEL, s + i*PAGE_SIZE, s + i*PAGE_SIZE, PAGE_NOT_CACHEABLE);
     70                page_mapping_insert(AS_KERNEL, s + i * PAGE_SIZE, s + i * PAGE_SIZE, PAGE_NOT_CACHEABLE);
    7171
    7272}
Note: See TracChangeset for help on using the changeset viewer.