UBI: remove duplicate IO error codes
[deliverable/linux.git] / drivers / mtd / ubi / build.c
index 13b05cb33b085fbb063a1024f30feb239a82c9de..f247c4e7b40de9df7cbf08850f2e96432347db8f 100644 (file)
@@ -95,8 +95,8 @@ DEFINE_MUTEX(ubi_devices_mutex);
 static DEFINE_SPINLOCK(ubi_devices_lock);
 
 /* "Show" method for files in '/<sysfs>/class/ubi/' */
-static ssize_t ubi_version_show(struct class *class, struct class_attribute *attr,
-                               char *buf)
+static ssize_t ubi_version_show(struct class *class,
+                               struct class_attribute *attr, char *buf)
 {
        return sprintf(buf, "%d\n", UBI_VERSION);
 }
@@ -593,6 +593,7 @@ static int attach_by_scanning(struct ubi_device *ubi)
        ubi->good_peb_count = ubi->peb_count - ubi->bad_peb_count;
        ubi->max_ec = si->max_ec;
        ubi->mean_ec = si->mean_ec;
+       ubi_msg("max. sequence number:       %llu", si->max_sqnum);
 
        err = ubi_read_volume_table(ubi, si);
        if (err)
@@ -981,7 +982,7 @@ int ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num, int vid_hdr_offset)
        ubi_msg("number of PEBs reserved for bad PEB handling: %d",
                ubi->beb_rsvd_pebs);
        ubi_msg("max/mean erase counter: %d/%d", ubi->max_ec, ubi->mean_ec);
-       ubi_msg("image sequence number: %d", ubi->image_seq);
+       ubi_msg("image sequence number:  %d", ubi->image_seq);
 
        /*
         * The below lock makes sure we do not race with 'ubi_thread()' which
This page took 0.027093 seconds and 5 git commands to generate.