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

View File

@ -504,9 +504,9 @@ real_dump_cache_list(cache_ent_list *cel)
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 "
"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);
}
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",
(ulong)ce, ce->block_num, ce->lock);
}
if (ce->lock == 0) {
delete_from_list(&bc.locked, 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)) {
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,
(ulong)ce);
}
@ -1554,6 +1554,7 @@ release_block(int dev, fs_off_t bnum)
}
ce->lock--;
if (ce->lock < 0) {
printf("rlsb: whoa nellie! ce %ld has lock == %d\n",
ce->block_num, ce->lock);

View File

@ -223,7 +223,7 @@ PANIC(char *s, ...)
vfprintf(stdout, s, list);
va_end(list);
exit(-1);
debugger("fs shell kernel panic!");
}