for (i = 0; i < UBI_MAX_DEVICES; i++) {
                ubi = ubi_devices[i];
                if (ubi && mtd->index == ubi->mtd->index) {
-                       pr_err("ubi: mtd%d is already attached to ubi%d",
+                       pr_err("ubi: mtd%d is already attached to ubi%d\n",
                                mtd->index, i);
                        return -EEXIST;
                }
         * no sense to attach emulated MTD devices, so we prohibit this.
         */
        if (mtd->type == MTD_UBIVOLUME) {
-               pr_err("ubi: refuse attaching mtd%d - it is already emulated on top of UBI",
+               pr_err("ubi: refuse attaching mtd%d - it is already emulated on top of UBI\n",
                        mtd->index);
                return -EINVAL;
        }
                        if (!ubi_devices[ubi_num])
                                break;
                if (ubi_num == UBI_MAX_DEVICES) {
-                       pr_err("ubi: only %d UBI devices may be created",
+                       pr_err("ubi: only %d UBI devices may be created\n",
                                UBI_MAX_DEVICES);
                        return -ENFILE;
                }
 
                /* Make sure ubi_num is not busy */
                if (ubi_devices[ubi_num]) {
-                       pr_err("ubi: ubi%i already exists", ubi_num);
+                       pr_err("ubi: ubi%i already exists\n", ubi_num);
                        return -EEXIST;
                }
        }