* grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error

number.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-02-03 11:50:18 +01:00
parent 54e2be2630
commit a646a366bb
2 changed files with 9 additions and 4 deletions

View file

@ -1,3 +1,8 @@
2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
number.
2012-02-03 Vladimir Serbinenko <phcoder@gmail.com> 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message. * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.

View file

@ -479,19 +479,19 @@ grub_reiserfs_get_item (struct grub_reiserfs_data *data,
if (! data) if (! data)
{ {
grub_error (GRUB_ERR_TEST_FAILURE, "data is NULL"); grub_error (GRUB_ERR_BAD_FS, "data is NULL");
goto fail; goto fail;
} }
if (! key) if (! key)
{ {
grub_error (GRUB_ERR_TEST_FAILURE, "key is NULL"); grub_error (GRUB_ERR_BAD_FS, "key is NULL");
goto fail; goto fail;
} }
if (! item) if (! item)
{ {
grub_error (GRUB_ERR_TEST_FAILURE, "item is NULL"); grub_error (GRUB_ERR_BAD_FS, "item is NULL");
goto fail; goto fail;
} }
@ -520,7 +520,7 @@ grub_reiserfs_get_item (struct grub_reiserfs_data *data,
if (current_level >= previous_level) if (current_level >= previous_level)
{ {
grub_dprintf ("reiserfs_tree", "level loop detected, aborting\n"); grub_dprintf ("reiserfs_tree", "level loop detected, aborting\n");
grub_error (GRUB_ERR_FILE_READ_ERROR, "level loop"); grub_error (GRUB_ERR_BAD_FS, "level loop");
goto fail; goto fail;
} }
previous_level = current_level; previous_level = current_level;