]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Build.c
mdadm/mdstat: correct the strncmp number 4 as 6
[thirdparty/mdadm.git] / Build.c
diff --git a/Build.c b/Build.c
index ad59867b53da0d956806e020a0429c3c9695f4f5..962c2e3776b91ccb15135b9c0cff91f322a8c9fe 100644 (file)
--- a/Build.c
+++ b/Build.c
 
 #include "mdadm.h"
 
-#define REGISTER_DEV           _IO (MD_MAJOR, 1)
-#define START_MD               _IO (MD_MAJOR, 2)
-#define STOP_MD                        _IO (MD_MAJOR, 3)
-
 int Build(char *mddev, struct mddev_dev *devlist,
          struct shape *s, struct context *c)
 {
@@ -185,7 +181,7 @@ int Build(char *mddev, struct mddev_dev *devlist,
                        int major = BITMAP_MAJOR_HI;
 #if 0
                        if (s->bitmap_chunk == UnSet) {
-                               pr_err("%s cannot be openned.", s->bitmap_file);
+                               pr_err("%s cannot be opened.\n", s->bitmap_file);
                                goto abort;
                        }
 #endif
@@ -197,7 +193,7 @@ int Build(char *mddev, struct mddev_dev *devlist,
                        }
                        bitmap_fd = open(s->bitmap_file, O_RDWR);
                        if (bitmap_fd < 0) {
-                               pr_err("%s cannot be openned.", s->bitmap_file);
+                               pr_err("%s cannot be opened.\n", s->bitmap_file);
                                goto abort;
                        }
                }