* grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove

inappropriate printf.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2013-08-02 22:45:41 +02:00
parent f4e1ab9da7
commit 459b1d9171
2 changed files with 13 additions and 8 deletions

View file

@ -1,3 +1,8 @@
2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
inappropriate printf.
2013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
* .bzrignore: Remove grub-core/lib/dtc-grub,

View file

@ -4135,17 +4135,17 @@ grub_zfs_dir (grub_device_t device, const char *path,
}
static int
check_feature(const char *name, grub_uint64_t val,__attribute__((unused)) struct grub_zfs_dir_ctx *ctx)
check_feature (const char *name, grub_uint64_t val,
struct grub_zfs_dir_ctx *ctx __attribute__((unused)))
{
int i;
if(val ==0) return 0;
if(*name==0) return 0;
if (val == 0)
return 0;
if (name[0] == 0)
return 0;
for (i = 0; spa_feature_names[i] != NULL; i++)
{
if (grub_strcmp(name, spa_feature_names[i]) == 0)
return 0;
}
grub_printf("missing feature for read '%s'\n",name);
if (grub_strcmp (name, spa_feature_names[i]) == 0)
return 0;
return 1;
}