@@ -825,7 +825,7 @@ int ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num,
825
825
for (i = 0 ; i < UBI_MAX_DEVICES ; i ++ ) {
826
826
ubi = ubi_devices [i ];
827
827
if (ubi && mtd -> index == ubi -> mtd -> index ) {
828
- pr_err ("ubi: mtd%d is already attached to ubi%d" ,
828
+ pr_err ("ubi: mtd%d is already attached to ubi%d\n " ,
829
829
mtd -> index , i );
830
830
return - EEXIST ;
831
831
}
@@ -840,7 +840,7 @@ int ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num,
840
840
* no sense to attach emulated MTD devices, so we prohibit this.
841
841
*/
842
842
if (mtd -> type == MTD_UBIVOLUME ) {
843
- pr_err ("ubi: refuse attaching mtd%d - it is already emulated on top of UBI" ,
843
+ pr_err ("ubi: refuse attaching mtd%d - it is already emulated on top of UBI\n " ,
844
844
mtd -> index );
845
845
return - EINVAL ;
846
846
}
@@ -851,7 +851,7 @@ int ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num,
851
851
if (!ubi_devices [ubi_num ])
852
852
break ;
853
853
if (ubi_num == UBI_MAX_DEVICES ) {
854
- pr_err ("ubi: only %d UBI devices may be created" ,
854
+ pr_err ("ubi: only %d UBI devices may be created\n " ,
855
855
UBI_MAX_DEVICES );
856
856
return - ENFILE ;
857
857
}
@@ -861,7 +861,7 @@ int ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num,
861
861
862
862
/* Make sure ubi_num is not busy */
863
863
if (ubi_devices [ubi_num ]) {
864
- pr_err ("ubi: ubi%i already exists" , ubi_num );
864
+ pr_err ("ubi: ubi%i already exists\n " , ubi_num );
865
865
return - EEXIST ;
866
866
}
867
867
}
@@ -1166,7 +1166,7 @@ static int __init ubi_init(void)
1166
1166
BUILD_BUG_ON (sizeof (struct ubi_vid_hdr ) != 64 );
1167
1167
1168
1168
if (mtd_devs > UBI_MAX_DEVICES ) {
1169
- pr_err ("UBI error: too many MTD devices, maximum is %d" ,
1169
+ pr_err ("UBI error: too many MTD devices, maximum is %d\n " ,
1170
1170
UBI_MAX_DEVICES );
1171
1171
return - EINVAL ;
1172
1172
}
@@ -1178,7 +1178,7 @@ static int __init ubi_init(void)
1178
1178
1179
1179
err = misc_register (& ubi_ctrl_cdev );
1180
1180
if (err ) {
1181
- pr_err ("UBI error: cannot register device" );
1181
+ pr_err ("UBI error: cannot register device\n " );
1182
1182
goto out ;
1183
1183
}
1184
1184
@@ -1205,7 +1205,7 @@ static int __init ubi_init(void)
1205
1205
mtd = open_mtd_device (p -> name );
1206
1206
if (IS_ERR (mtd )) {
1207
1207
err = PTR_ERR (mtd );
1208
- pr_err ("UBI error: cannot open mtd %s, error %d" ,
1208
+ pr_err ("UBI error: cannot open mtd %s, error %d\n " ,
1209
1209
p -> name , err );
1210
1210
/* See comment below re-ubi_is_module(). */
1211
1211
if (ubi_is_module ())
@@ -1218,7 +1218,7 @@ static int __init ubi_init(void)
1218
1218
p -> vid_hdr_offs , p -> max_beb_per1024 );
1219
1219
mutex_unlock (& ubi_devices_mutex );
1220
1220
if (err < 0 ) {
1221
- pr_err ("UBI error: cannot attach mtd%d" ,
1221
+ pr_err ("UBI error: cannot attach mtd%d\n " ,
1222
1222
mtd -> index );
1223
1223
put_mtd_device (mtd );
1224
1224
@@ -1242,7 +1242,7 @@ static int __init ubi_init(void)
1242
1242
1243
1243
err = ubiblock_init ();
1244
1244
if (err ) {
1245
- pr_err ("UBI error: block: cannot initialize, error %d" , err );
1245
+ pr_err ("UBI error: block: cannot initialize, error %d\n " , err );
1246
1246
1247
1247
/* See comment above re-ubi_is_module(). */
1248
1248
if (ubi_is_module ())
@@ -1265,7 +1265,7 @@ static int __init ubi_init(void)
1265
1265
misc_deregister (& ubi_ctrl_cdev );
1266
1266
out :
1267
1267
class_unregister (& ubi_class );
1268
- pr_err ("UBI error: cannot initialize UBI, error %d" , err );
1268
+ pr_err ("UBI error: cannot initialize UBI, error %d\n " , err );
1269
1269
return err ;
1270
1270
}
1271
1271
late_initcall (ubi_init );
0 commit comments