The fs-shell kernel's PANIC() now calls the userland debugger.

Fixed a wrong printf argument (block number is %Ld) in release_block().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3361 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2003-05-28 01:04:53 +00:00
parent 5c35d41aab
commit 6c66b99b6b
2 changed files with 6 additions and 5 deletions
@@ -504,9 +504,9 @@ real_dump_cache_list(cache_ent_list *cel)
kprintf("starting from LRU end:\n"); kprintf("starting from LRU end:\n");
for(ce=cel->lru; ce; ce=ce->next) { for (ce = cel->lru; ce; ce = ce->next) {
kprintf("ce 0x%.8lx dev %2d bnum %6ld lock %d flag %d arg 0x%.8lx " kprintf("ce 0x%.8lx dev %2d bnum %6ld lock %d flag %d arg 0x%.8lx "
"clone 0x%.8lx\n", (ulong)ce, ce->dev, ce->block_num,ce->lock, "clone 0x%.8lx\n", (ulong)ce, ce->dev, ce->block_num, ce->lock,
ce->flags, (ulong)ce->arg, (ulong)ce->clone); ce->flags, (ulong)ce->arg, (ulong)ce->clone);
} }
kprintf("MRU end\n"); kprintf("MRU end\n");
@@ -1271,7 +1271,7 @@ set_blocks_info(int dev, fs_off_t *blocks, int nblocks,
printf("sbi: whoa nellie! ce @ 0x%lx (%ld) has lock == %d\n", printf("sbi: whoa nellie! ce @ 0x%lx (%ld) has lock == %d\n",
(ulong)ce, ce->block_num, ce->lock); (ulong)ce, ce->block_num, ce->lock);
} }
if (ce->lock == 0) { if (ce->lock == 0) {
delete_from_list(&bc.locked, ce); delete_from_list(&bc.locked, ce);
add_to_head(&bc.normal, ce); add_to_head(&bc.normal, ce);
@@ -1384,7 +1384,7 @@ real_remove_cached_blocks(int dev, int allow_writes, cache_ent_list *cel)
} }
if (ce->lock != 0 || (ce->flags & CE_BUSY)) { if (ce->lock != 0 || (ce->flags & CE_BUSY)) {
printf("*** remove_cached_dev: block %ld has lock = %d, flags " printf("*** remove_cached_dev: block %Ld has lock = %d, flags "
"0x%x! ce @ 0x%lx\n", ce->block_num, ce->lock, ce->flags, "0x%x! ce @ 0x%lx\n", ce->block_num, ce->lock, ce->flags,
(ulong)ce); (ulong)ce);
} }
@@ -1554,6 +1554,7 @@ release_block(int dev, fs_off_t bnum)
} }
ce->lock--; ce->lock--;
if (ce->lock < 0) { if (ce->lock < 0) {
printf("rlsb: whoa nellie! ce %ld has lock == %d\n", printf("rlsb: whoa nellie! ce %ld has lock == %d\n",
ce->block_num, ce->lock); ce->block_num, ce->lock);
@@ -223,7 +223,7 @@ PANIC(char *s, ...)
vfprintf(stdout, s, list); vfprintf(stdout, s, list);
va_end(list); va_end(list);
exit(-1); debugger("fs shell kernel panic!");
} }