static void sd_print_vi (struct virtual_item * vi)
{
- reiserfs_warning ("STATDATA, index %d, type 0x%x, %h\n",
+ reiserfs_warning (NULL, "STATDATA, index %d, type 0x%x, %h",
vi->vi_index, vi->vi_type, vi->vi_ih);
}
static void direct_print_vi (struct virtual_item * vi)
{
- reiserfs_warning ("DIRECT, index %d, type 0x%x, %h\n",
+ reiserfs_warning (NULL, "DIRECT, index %d, type 0x%x, %h",
vi->vi_index, vi->vi_type, vi->vi_ih);
}
unp = (__u32 *)item;
if (ih_item_len(ih) % UNFM_P_SIZE)
- printk ("indirect_print_item: invalid item len");
+ reiserfs_warning (NULL, "indirect_print_item: invalid item len");
printk ("%d pointers\n[ ", (int)I_UNFM_NUM (ih));
for (j = 0; j < I_UNFM_NUM (ih); j ++) {
static void indirect_print_vi (struct virtual_item * vi)
{
- reiserfs_warning ("INDIRECT, index %d, type 0x%x, %h\n",
+ reiserfs_warning (NULL, "INDIRECT, index %d, type 0x%x, %h",
vi->vi_index, vi->vi_type, vi->vi_ih);
}
static int direntry_bytes_number (struct item_head * ih, int block_size)
{
- reiserfs_warning ("vs-16090: direntry_bytes_number: "
+ reiserfs_warning (NULL, "vs-16090: direntry_bytes_number: "
"bytes number is asked for direntry");
return 0;
}
}
if (entries == dir_u->entry_count) {
- printk ("free spze %d, entry_count %d\n", free, dir_u->entry_count);
- BUG ();
+ reiserfs_panic (NULL, "free space %d, entry_count %d\n", free, dir_u->entry_count);
}
/* "." and ".." can not be separated from each other */
int i;
struct direntry_uarea * dir_u = vi->vi_uarea;
- reiserfs_warning ("DIRENTRY, index %d, type 0x%x, %h, flags 0x%x\n",
+ reiserfs_warning (NULL, "DIRENTRY, index %d, type 0x%x, %h, flags 0x%x",
vi->vi_index, vi->vi_type, vi->vi_ih, dir_u->flags);
printk ("%d entries: ", dir_u->entry_count);
for (i = 0; i < dir_u->entry_count; i ++)
//
static int errcatch_bytes_number (struct item_head * ih, int block_size)
{
- reiserfs_warning ("green-16001: Invalid item type observed, run fsck ASAP\n");
+ reiserfs_warning (NULL, "green-16001: Invalid item type observed, run fsck ASAP");
return 0;
}
static void errcatch_decrement_key (struct cpu_key * key)
{
- reiserfs_warning ("green-16002: Invalid item type observed, run fsck ASAP\n");
+ reiserfs_warning (NULL, "green-16002: Invalid item type observed, run fsck ASAP");
}
static int errcatch_is_left_mergeable (struct key * key, unsigned long bsize)
{
- reiserfs_warning ("green-16003: Invalid item type observed, run fsck ASAP\n");
+ reiserfs_warning (NULL, "green-16003: Invalid item type observed, run fsck ASAP");
return 0;
}
static void errcatch_print_item (struct item_head * ih, char * item)
{
- reiserfs_warning ("green-16004: Invalid item type observed, run fsck ASAP\n");
+ reiserfs_warning (NULL, "green-16004: Invalid item type observed, run fsck ASAP");
}
static void errcatch_check_item (struct item_head * ih, char * item)
{
- reiserfs_warning ("green-16005: Invalid item type observed, run fsck ASAP\n");
+ reiserfs_warning (NULL, "green-16005: Invalid item type observed, run fsck ASAP");
}
static int errcatch_create_vi (struct virtual_node * vn,
int is_affected,
int insert_size)
{
- reiserfs_warning ("green-16006: Invalid item type observed, run fsck ASAP\n");
+ reiserfs_warning (NULL, "green-16006: Invalid item type observed, run fsck ASAP");
return 0; // We might return -1 here as well, but it won't help as create_virtual_node() from where
// this operation is called from is of return type void.
}
static int errcatch_check_left (struct virtual_item * vi, int free,
int start_skip, int end_skip)
{
- reiserfs_warning ("green-16007: Invalid item type observed, run fsck ASAP\n");
+ reiserfs_warning (NULL, "green-16007: Invalid item type observed, run fsck ASAP");
return -1;
}
static int errcatch_check_right (struct virtual_item * vi, int free)
{
- reiserfs_warning ("green-16008: Invalid item type observed, run fsck ASAP\n");
+ reiserfs_warning (NULL, "green-16008: Invalid item type observed, run fsck ASAP");
return -1;
}
static int errcatch_part_size (struct virtual_item * vi, int first, int count)
{
- reiserfs_warning ("green-16009: Invalid item type observed, run fsck ASAP\n");
+ reiserfs_warning (NULL, "green-16009: Invalid item type observed, run fsck ASAP");
return 0;
}
static int errcatch_unit_num (struct virtual_item * vi)
{
- reiserfs_warning ("green-16010: Invalid item type observed, run fsck ASAP\n");
+ reiserfs_warning (NULL, "green-16010: Invalid item type observed, run fsck ASAP");
return 0;
}
static void errcatch_print_vi (struct virtual_item * vi)
{
- reiserfs_warning ("green-16011: Invalid item type observed, run fsck ASAP\n");
+ reiserfs_warning (NULL, "green-16011: Invalid item type observed, run fsck ASAP");
}
struct item_operations errcatch_ops = {