]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Fri, 2 Aug 2013 20:45:41 +0000 (22:45 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Fri, 2 Aug 2013 20:45:41 +0000 (22:45 +0200)
inappropriate printf.

ChangeLog
grub-core/fs/zfs/zfs.c

index ac713f6a8be1bf671e356c16b08dad93a21b5974..f450fe1ee20bc0c557643438a782ee78953d34f2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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,
index dfab221cdfb1611025504284e2e4175441a5dd29..f4acfd827ae1e12a6f6edad18e616456315a64ff 100644 (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;
 }