X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Freiserfs%2Fitem_ops.c;h=c315edbb218791b9beddcdd7a0a7ad40a386feda;hb=9bf4aaab3e101692164d49b7ca357651eb691cb6;hp=03b4247137477096c8fb91f8f060e07de7658b37;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/fs/reiserfs/item_ops.c b/fs/reiserfs/item_ops.c index 03b424713..c315edbb2 100644 --- a/fs/reiserfs/item_ops.c +++ b/fs/reiserfs/item_ops.c @@ -106,7 +106,7 @@ static int sd_unit_num (struct virtual_item * vi) 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); } @@ -209,7 +209,7 @@ static int direct_unit_num (struct virtual_item * vi) 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); } @@ -302,7 +302,7 @@ static void indirect_print_item (struct item_head * ih, char * item) 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 ++) { @@ -363,7 +363,7 @@ static int indirect_unit_num (struct virtual_item * vi) 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); } @@ -390,7 +390,7 @@ struct item_operations indirect_ops = { 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; } @@ -549,7 +549,7 @@ static int direntry_create_vi (struct virtual_node * vn, if (l + IH_SIZE != vi->vi_item_len + ((is_affected && (vn->vn_mode == M_PASTE || vn->vn_mode == M_CUT)) ? insert_size : 0) ) { - reiserfs_panic (0, "vs-8025: set_entry_sizes: (mode==%c, insert_size==%d), invalid length of directory item", + reiserfs_panic (NULL, "vs-8025: set_entry_sizes: (mode==%c, insert_size==%d), invalid length of directory item", vn->vn_mode, insert_size); } } @@ -582,8 +582,7 @@ static int direntry_check_left (struct virtual_item * vi, int free, } 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 */ @@ -653,7 +652,7 @@ static void direntry_print_vi (struct virtual_item * vi) 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 ++) @@ -682,32 +681,32 @@ struct item_operations direntry_ops = { // 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, @@ -715,7 +714,7 @@ 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. } @@ -723,32 +722,32 @@ static int errcatch_create_vi (struct virtual_node * vn, 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 = {