- Timestamp:
- 2006-04-22T23:00:26Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 12c7f27
- Parents:
- e692a27
- Location:
- generic
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/include/debug.h
re692a27 rcf85e24c 50 50 */ 51 51 #ifdef CONFIG_DEBUG 52 # define ASSERT(expr) if (!(expr)) { panic("assertion failed (%s), caller=% P\n", #expr, CALLER); }52 # define ASSERT(expr) if (!(expr)) { panic("assertion failed (%s), caller=%p\n", #expr, CALLER); } 53 53 #else 54 54 # define ASSERT(expr) -
generic/src/adt/btree.c
re692a27 rcf85e24c 118 118 if (!lnode) { 119 119 if (btree_search(t, key, &lnode)) { 120 panic("B-tree % Palready contains key %d\n", t, key);120 panic("B-tree %p already contains key %d\n", t, key); 121 121 } 122 122 } … … 201 201 if (!lnode) { 202 202 if (!btree_search(t, key, &lnode)) { 203 panic("B-tree % Pdoes not contain key %d\n", t, key);203 panic("B-tree %p does not contain key %d\n", t, key); 204 204 } 205 205 } … … 501 501 } 502 502 } 503 panic("node % Pdoes not contain key %d\n", node, key);503 panic("node %p does not contain key %d\n", node, key); 504 504 } 505 505 … … 528 528 } 529 529 } 530 panic("node % Pdoes not contain key %d\n", node, key);530 panic("node %p does not contain key %d\n", node, key); 531 531 } 532 532 … … 670 670 return i - (int) (right != false); 671 671 } 672 panic("node % P does not contain subtree %P\n", node, subtree);672 panic("node %p does not contain subtree %p\n", node, subtree); 673 673 } 674 674 -
generic/src/main/main.c
re692a27 rcf85e24c 177 177 178 178 version_print(); 179 printf("%#zX: hardcoded_ktext_size=%zdK, hardcoded_kdata_size=%zdK\n", 180 config.base, hardcoded_ktext_size/1024, hardcoded_kdata_size/1024); 179 printf("%#zx: hardcoded_ktext_size=%zdK, hardcoded_kdata_size=%zdK\n", config.base, hardcoded_ktext_size / 1024, hardcoded_kdata_size / 1024); 181 180 182 181 arch_pre_smp_init(); … … 197 196 198 197 for (i = 0; i < init.cnt; i++) 199 printf("init[%zd].addr=% P, init[%zd].size=%zd\n", i, init.tasks[i].addr, i, init.tasks[i].size);198 printf("init[%zd].addr=%p, init[%zd].size=%zd\n", i, init.tasks[i].addr, i, init.tasks[i].size); 200 199 201 200 ipc_init(); -
generic/src/mm/frame.c
re692a27 rcf85e24c 1029 1029 zone = zones.info[i]; 1030 1030 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); 1033 1032 spinlock_unlock(&zone->lock); 1034 1033 } -
generic/src/mm/page.c
re692a27 rcf85e24c 64 64 int i, cnt, length; 65 65 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); 68 68 69 69 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); 71 71 72 72 } -
generic/src/proc/scheduler.c
re692a27 rcf85e24c 634 634 635 635 spinlock_lock(&cpus[cpu].lock); 636 printf("cpu%d: address=% P, nrdy=%ld, needs_relink=%ld\n",636 printf("cpu%d: address=%p, nrdy=%ld, needs_relink=%ld\n", 637 637 cpus[cpu].id, &cpus[cpu], atomic_get(&cpus[cpu].nrdy), cpus[cpu].needs_relink); 638 638
Note:
See TracChangeset
for help on using the changeset viewer.