UBI: comply with coding style
Subsystems (2)
PATCH 2/2 UBI: use pr_ helper instead of printk
In reply to Artem BityutskiyFrom: Artem Bityutskiy <[email protected]>
Use 'pr_err()' instead of 'printk(KERN_ERR', etc.
Signed-off-by Artem Bityutskiy <[email protected]>
--- drivers/mtd/ubi/attach.c | 6 +- drivers/mtd/ubi/build.c | 23 ++++--- drivers/mtd/ubi/debug.c | 149 ++++++++++++++++++++++------------------------ drivers/mtd/ubi/debug.h | 8 +-- drivers/mtd/ubi/gluebi.c | 2 +- drivers/mtd/ubi/ubi.h | 8 +-- 6 files changed, 93 insertions(+), 103 deletions(-)
drivers/mtd/ubi/attach.c +3 -3
@@ -1074,10 +1074,10 @@ static int late_analysis(struct ubi_device *ubi, struct ubi_attach_info *ai)if (ai->corr_peb_count) {ubi_err ("%d PEBs are corrupted and preserved" , ai->corr_peb_count); -printk (KERN_ERR "Corrupted PEBs are:" ); +pr_err ("Corrupted PEBs are:" );list_for_each_entry (aeb, &ai->corr, u.list) -printk (KERN_CONT " %d" , aeb->pnum); -printk (KERN_CONT "\n" ); +pr_cont (" %d" , aeb->pnum); +pr_cont ("\n" );/* * If too many PEBs are corrupted, we refuse attaching,
drivers/mtd/ubi/build.c +10 -13
@@ -1304,8 +1304,7 @@ static int __init bytes_str_to_int(const char *str) result =simple_strtoul (str, &endp,0 );if (str == endp || result >=INT_MAX ) { -printk (KERN_ERR "UBI error: incorrect bytes count: \"%s\"\n" , - str); +ubi_err ("UBI error: incorrect bytes count: \"%s\"\n" , str);return -EINVAL ; }
@@ -1321,8 +1320,7 @@ static int __init bytes_str_to_int(const char *str)case '\0' :break ;default : -printk (KERN_ERR "UBI error: incorrect bytes count: \"%s\"\n" , - str); +ubi_err ("UBI error: incorrect bytes count: \"%s\"\n" , str);return -EINVAL ; }
@@ -1349,20 +1347,20 @@ static int __init ubi_mtd_param_parse(const char *val, struct kernel_param *kp)return -EINVAL ;if (mtd_devs ==UBI_MAX_DEVICES ) { -printk (KERN_ERR "UBI error: too many parameters, max. is %d\n" , -UBI_MAX_DEVICES ); +ubi_err ("UBI error: too many parameters, max. is %d\n" , +UBI_MAX_DEVICES );return -EINVAL ; } len =strnlen (val,MTD_PARAM_LEN_MAX );if (len ==MTD_PARAM_LEN_MAX ) { -printk (KERN_ERR "UBI error: parameter \"%s\" is too long, max. is %d\n" , - val,MTD_PARAM_LEN_MAX ); +ubi_err ("UBI error: parameter \"%s\" is too long, max. is %d\n" , + val,MTD_PARAM_LEN_MAX );return -EINVAL ; }if (len ==0 ) { -printk (KERN_WARNING "UBI warning: empty 'mtd=' parameter - ignored\n" ); +pr_warn ("UBI warning: empty 'mtd=' parameter - ignored\n" );return 0 ; }
@@ -1376,8 +1374,7 @@ static int __init ubi_mtd_param_parse(const char *val, struct kernel_param *kp) tokens[i] =strsep (&pbuf,"," );if (pbuf) { -printk (KERN_ERR "UBI error: too many arguments at \"%s\"\n" , - val); +ubi_err ("UBI error: too many arguments at \"%s\"\n" , val);return -EINVAL ; }
@@ -1394,8 +1391,8 @@ static int __init ubi_mtd_param_parse(const char *val, struct kernel_param *kp)int err =kstrtoint (tokens[2 ],10 , &p->max_beb_per1024);if (err) { -printk (KERN_ERR "UBI error: bad value for max_beb_per1024 parameter: %s" , - tokens[2 ]); +ubi_err ("UBI error: bad value for max_beb_per1024 parameter: %s" , + tokens[2 ]);return -EINVAL ; } }
drivers/mtd/ubi/debug.c +71 -78
211 lines not on this page · raw message
drivers/mtd/ubi/debug.h +4 -4
@@ -29,13 +29,13 @@ void ubi_dump_vid_hdr(const struct ubi_vid_hdr *vid_hdr);#define ubi_assert (expr) do { \ if (unlikely(!(expr))) { \ - printk(KERN_CRIT "UBI assert failed in %s at %u (pid %d)\n", \ + pr_crit("UBI assert failed in %s at %u (pid %d)\n", \ __func__, __LINE__, current->pid); \ dump_stack(); \ } \ } while (0) -#define ubi_dbg_print_hex_dump (l, ps, pt, r, g, b, len, a) \ +#define ubi_dbg_print_hex_dump (l, ps, pt, r, g, b, len, a) \ print_hex_dump(l, ps, pt, r, g, b, len, a)#define ubi_dbg_msg (type, fmt, ...) \
@@ -43,8 +43,8 @@ void ubi_dump_vid_hdr(const struct ubi_vid_hdr *vid_hdr); ##__VA_ARGS__)/* Just a debugging messages not related to any specific UBI subsystem */ -#define dbg_msg (fmt, ...) \ - printk(KERN_DEBUG "UBI DBG (pid %d): %s: " fmt "\n", \ +#define dbg_msg (fmt, ...) \ + pr_err("UBI DBG (pid %d): %s: " fmt "\n", \ current->pid, __func__, ##__VA_ARGS__)/* General debugging messages */
drivers/mtd/ubi/gluebi.c +1 -1
@@ -41,7 +41,7 @@#include "ubi-media.h" #define err_msg (fmt, ...) \ - printk(KERN_DEBUG "gluebi (pid %d): %s: " fmt "\n", \ + pr_err("gluebi (pid %d): %s: " fmt "\n", \ current->pid, __func__, ##__VA_ARGS__)/**
drivers/mtd/ubi/ubi.h +4 -4
@@ -51,12 +51,12 @@#define UBI_NAME_STR "ubi"/* Normal UBI messages */ -#define ubi_msg (fmt, ...) printk(KERN_NOTICE "UBI: " fmt "\n", ##__VA_ARGS__) +#define ubi_msg (fmt, ...) pr_notice("UBI: " fmt "\n", ##__VA_ARGS__)/* UBI warning messages */ -#define ubi_warn (fmt, ...) printk(KERN_WARNING "UBI warning: %s: " fmt "\n", \ - __func__, ##__VA_ARGS__) +#define ubi_warn (fmt, ...) pr_warn("UBI warning: %s: " fmt "\n", \ + __func__, ##__VA_ARGS__)/* UBI error messages */ -#define ubi_err (fmt, ...) printk(KERN_ERR "UBI error: %s: " fmt "\n", \ +#define ubi_err (fmt, ...) pr_err("UBI error: %s: " fmt "\n", \ __func__, ##__VA_ARGS__)/* Background thread name pattern */
Signature · 1 line
1.7.10.4
PATCH 1/2 UBI: comply with coding style
From: Artem Bityutskiy <[email protected]>
Join all the split printk lines in order to stop checkpatch complaining.
Signed-off-by Artem Bityutskiy <[email protected]>
--- drivers/mtd/ubi/attach.c | 28 ++++++++--------- drivers/mtd/ubi/build.c | 22 ++++++------- drivers/mtd/ubi/cdev.c | 9 +++--- drivers/mtd/ubi/debug.c | 4 +-- drivers/mtd/ubi/eba.c | 33 +++++++++----------- drivers/mtd/ubi/gluebi.c | 28 ++++++++--------- drivers/mtd/ubi/io.c | 78 ++++++++++++++++++++++------------------------ drivers/mtd/ubi/misc.c | 4 +-- drivers/mtd/ubi/vtbl.c | 8 ++--- 9 files changed, 101 insertions(+), 113 deletions(-)
drivers/mtd/ubi/attach.c +13 -15
@@ -378,8 +378,8 @@ static int compare_lebs(struct ubi_device *ubi, const struct ubi_ainf_peb *aeb,if (err ==UBI_IO_BITFLIPS ) bitflips =1 ;else { -ubi_err ("VID of PEB %d header is bad, but it " -"was OK earlier, err %d" , pnum, err); +ubi_err ("VID of PEB %d header is bad, but it was OK earlier, err %d" , + pnum, err);if (err >0 ) err = -EIO ;
@@ -790,9 +790,9 @@ static int check_corruption(struct ubi_device *ubi, struct ubi_vid_hdr *vid_hdr,if (ubi_check_pattern (ubi->peb_buf,0xFF , ubi->leb_size)) goto out_unlock; -ubi_err ("PEB %d contains corrupted VID header, and the data does not " -"contain all 0xFF, this may be a non-UBI PEB or a severe VID " -"header corruption which requires manual inspection" , pnum); +ubi_err ("PEB %d contains corrupted VID header, and the data does not contain all 0xFF" , + pnum); +ubi_err ("this may be a non-UBI PEB or a severe VID header corruption which requires manual inspection" );ubi_dump_vid_hdr (vid_hdr);dbg_msg ("hexdump of PEB %d offset %d, length %d" , pnum, ubi->leb_start, ubi->leb_size);
@@ -907,8 +907,8 @@ static int scan_peb(struct ubi_device *ubi, struct ubi_attach_info *ai, ubi->image_seq = image_seq;if (ubi->image_seq && image_seq && ubi->image_seq != image_seq) { -ubi_err ("bad image sequence number %d in PEB %d, " -"expected %d" , image_seq, pnum, ubi->image_seq); +ubi_err ("bad image sequence number %d in PEB %d, expected %d" , + image_seq, pnum, ubi->image_seq);ubi_dump_ec_hdr (ech);return -EINVAL ; }
@@ -997,8 +997,8 @@ static int scan_peb(struct ubi_device *ubi, struct ubi_attach_info *ai,/* Unsupported internal volume */ switch (vidh->compat) {case UBI_COMPAT_DELETE : -ubi_msg ("\"delete\" compatible internal volume %d:%d" -" found, will remove it" , vol_id, lnum); +ubi_msg ("\"delete\" compatible internal volume %d:%d found, will remove it" , + vol_id, lnum); err =add_to_list (ai, pnum, vol_id, lnum, ec,1 , &ai->erase);if (err)
@@ -1006,15 +1006,14 @@ static int scan_peb(struct ubi_device *ubi, struct ubi_attach_info *ai,return 0 ;case UBI_COMPAT_RO : -ubi_msg ("read-only compatible internal volume %d:%d" -" found, switch to read-only mode" , +ubi_msg ("read-only compatible internal volume %d:%d found, switch to read-only mode" , vol_id, lnum); ubi->ro_mode =1 ;break ;case UBI_COMPAT_PRESERVE : -ubi_msg ("\"preserve\" compatible internal volume %d:%d" -" found" , vol_id, lnum); +ubi_msg ("\"preserve\" compatible internal volume %d:%d found" , + vol_id, lnum); err =add_to_list (ai, pnum, vol_id, lnum, ec,0 , &ai->alien);if (err)
@@ -1112,8 +1111,7 @@ static int late_analysis(struct ubi_device *ubi, struct ubi_attach_info *ai)get_random_bytes (&ubi->image_seq,sizeof (ubi->image_seq)); }else { -ubi_err ("MTD device is not UBI-formatted and possibly " -"contains non-UBI data - refusing it" ); +ubi_err ("MTD device is not UBI-formatted and possibly contains non-UBI data - refusing it" );return -EINVAL ; }
drivers/mtd/ubi/build.c +10 -12
@@ -748,16 +748,15 @@ static int io_init(struct ubi_device *ubi, int max_beb_per1024)* read-only mode. */ if (ubi->vid_hdr_offset +UBI_VID_HDR_SIZE <= ubi->hdrs_min_io_size) { -ubi_warn ("EC and VID headers are in the same minimal I/O unit, " -"switch to read-only mode" ); +ubi_warn ("EC and VID headers are in the same minimal I/O unit, switch to read-only mode" ); ubi->ro_mode =1 ; } ubi->leb_size = ubi->peb_size - ubi->leb_start;if (!(ubi->mtd->flags &MTD_WRITEABLE )) { -ubi_msg ("MTD device %d is write-protected, attach in " -"read-only mode" , ubi->mtd->index); +ubi_msg ("MTD device %d is write-protected, attach in read-only mode" , + ubi->mtd->index); ubi->ro_mode =1 ; }
@@ -892,8 +891,8 @@ int ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num,* no sense to attach emulated MTD devices, so we prohibit this. */ if (mtd->type ==MTD_UBIVOLUME ) { -ubi_err ("refuse attaching mtd%d - it is already emulated on " -"top of UBI" , mtd->index); +ubi_err ("refuse attaching mtd%d - it is already emulated on top of UBI" , + mtd->index);return -EINVAL ; }
@@ -1357,14 +1356,13 @@ static int __init ubi_mtd_param_parse(const char *val, struct kernel_param *kp) len =strnlen (val,MTD_PARAM_LEN_MAX );if (len ==MTD_PARAM_LEN_MAX ) { -printk (KERN_ERR "UBI error: parameter \"%s\" is too long, " -"max. is %d\n" , val,MTD_PARAM_LEN_MAX ); +printk (KERN_ERR "UBI error: parameter \"%s\" is too long, max. is %d\n" , + val,MTD_PARAM_LEN_MAX );return -EINVAL ; }if (len ==0 ) { -printk (KERN_WARNING "UBI warning: empty 'mtd=' parameter - " -"ignored\n" ); +printk (KERN_WARNING "UBI warning: empty 'mtd=' parameter - ignored\n" );return 0 ; }
@@ -1396,8 +1394,8 @@ static int __init ubi_mtd_param_parse(const char *val, struct kernel_param *kp)int err =kstrtoint (tokens[2 ],10 , &p->max_beb_per1024);if (err) { -printk (KERN_ERR "UBI error: bad value for " -"max_beb_per1024 parameter: %s" , tokens[2 ]); +printk (KERN_ERR "UBI error: bad value for max_beb_per1024 parameter: %s" , + tokens[2 ]);return -EINVAL ; } }
drivers/mtd/ubi/cdev.c +5 -4
@@ -140,9 +140,9 @@ static int vol_cdev_release(struct inode *inode, struct file *file) vol->updating =0 ;vfree (vol->upd_buf); }else if (vol->changing_leb) { -dbg_gen ("only %lld of %lld bytes received for atomic LEB change" -" for volume %d:%d, cancel" , vol->upd_received, - vol->upd_bytes, vol->ubi->ubi_num, vol->vol_id); +dbg_gen ("only %lld of %lld bytes received for atomic LEB change for volume %d:%d, cancel" , + vol->upd_received, vol->upd_bytes, vol->ubi->ubi_num, + vol->vol_id); vol->changing_leb =0 ;vfree (vol->upd_buf); }
@@ -189,7 +189,8 @@ static loff_t vol_cdev_llseek(struct file *file, loff_t offset, int origin)return new_offset; } -static int vol_cdev_fsync (struct file *file,loff_t start,loff_t end,int datasync) +static int vol_cdev_fsync (struct file *file,loff_t start,loff_t end, +int datasync) {struct ubi_volume_desc *desc = file->private_data;struct ubi_device *ubi = desc->vol->ubi;
drivers/mtd/ubi/debug.c +2 -2
@@ -43,8 +43,8 @@ void ubi_dump_flash(struct ubi_device *ubi, int pnum, int offset, int len)return ; err =mtd_read (ubi->mtd, addr, len, &read, buf);if (err && err != -EUCLEAN ) { -ubi_err ("error %d while reading %d bytes from PEB %d:%d, " -"read %zd bytes" , err, len, pnum, offset, read); +ubi_err ("error %d while reading %d bytes from PEB %d:%d, read %zd bytes" , + err, len, pnum, offset, read); goto out; }
drivers/mtd/ubi/eba.c +15 -18
@@ -420,9 +420,8 @@ retry:*/ if (err ==UBI_IO_BAD_HDR_EBADMSG || err ==UBI_IO_BAD_HDR ) { -ubi_warn ("corrupted VID header at PEB " -"%d, LEB %d:%d" , pnum, vol_id, - lnum); +ubi_warn ("corrupted VID header at PEB %d, LEB %d:%d" , + pnum, vol_id, lnum); err = -EBADMSG ; }else ubi_ro_mode (ubi);
@@ -660,9 +659,8 @@ retry:if (len) { err =ubi_io_write_data (ubi, buf, pnum, offset, len);if (err) { -ubi_warn ("failed to write %d bytes at offset %d of " -"LEB %d:%d, PEB %d" , len, offset, vol_id, - lnum, pnum); +ubi_warn ("failed to write %d bytes at offset %d of LEB %d:%d, PEB %d" , + len, offset, vol_id, lnum, pnum); goto write_error; } }
@@ -1040,9 +1038,8 @@ int ubi_eba_copy_leb(struct ubi_device *ubi, int from, int to,* cancel it. */ if (vol->eba_tbl[lnum] != from) { -dbg_wl ("LEB %d:%d is no longer mapped to PEB %d, mapped to " -"PEB %d, cancel" , vol_id, lnum, from, - vol->eba_tbl[lnum]); +dbg_wl ("LEB %d:%d is no longer mapped to PEB %d, mapped to PEB %d, cancel" , + vol_id, lnum, from, vol->eba_tbl[lnum]); err =MOVE_CANCEL_RACE ; goto out_unlock_leb; }
@@ -1107,8 +1104,8 @@ int ubi_eba_copy_leb(struct ubi_device *ubi, int from, int to, err =ubi_io_read_vid_hdr (ubi, to, vid_hdr,1 );if (err) {if (err !=UBI_IO_BITFLIPS ) { -ubi_warn ("error %d while reading VID header back from " -"PEB %d" , err, to); +ubi_warn ("error %d while reading VID header back from PEB %d" , + err, to);if (is_error_sane (err)) err =MOVE_TARGET_RD_ERR ; }else
@@ -1134,8 +1131,8 @@ int ubi_eba_copy_leb(struct ubi_device *ubi, int from, int to, err =ubi_io_read_data (ubi, ubi->peb_buf, to,0 , aldata_size);if (err) {if (err !=UBI_IO_BITFLIPS ) { -ubi_warn ("error %d while reading data back " -"from PEB %d" , err, to); +ubi_warn ("error %d while reading data back from PEB %d" , + err, to);if (is_error_sane (err)) err =MOVE_TARGET_RD_ERR ; }else
@@ -1146,8 +1143,8 @@ int ubi_eba_copy_leb(struct ubi_device *ubi, int from, int to,cond_resched ();if (crc !=crc32 (UBI_CRC32_INIT , ubi->peb_buf, data_size)) { -ubi_warn ("read data back from PEB %d and it is " -"different" , to); +ubi_warn ("read data back from PEB %d and it is different" , + to); err = -EINVAL ; goto out_unlock_buf; }
@@ -1197,11 +1194,11 @@ static void print_rsvd_warning(struct ubi_device *ubi,return ; } -ubi_warn ("cannot reserve enough PEBs for bad PEB handling, reserved %d," -" need %d" , ubi->beb_rsvd_pebs, ubi->beb_rsvd_level); +ubi_warn ("cannot reserve enough PEBs for bad PEB handling, reserved %d, need %d" , + ubi->beb_rsvd_pebs, ubi->beb_rsvd_level);if (ubi->corr_peb_count)ubi_warn ("%d PEBs are corrupted and not used" , - ubi->corr_peb_count); + ubi->corr_peb_count); }/**
drivers/mtd/ubi/gluebi.c +13 -15
@@ -341,9 +341,8 @@ static int gluebi_create(struct ubi_device_info *di,mutex_lock (&devices_mutex); g =find_gluebi_nolock (vi->ubi_num, vi->vol_id);if (g) -err_msg ("gluebi MTD device %d form UBI device %d volume %d " -"already exists" , g->mtd.index, vi->ubi_num, - vi->vol_id); +err_msg ("gluebi MTD device %d form UBI device %d volume %d already exists" , + g->mtd.index, vi->ubi_num, vi->vol_id);mutex_unlock (&devices_mutex);if (mtd_device_register (mtd,NULL ,0 )) {
@@ -376,8 +375,8 @@ static int gluebi_remove(struct ubi_volume_info *vi)mutex_lock (&devices_mutex); gluebi =find_gluebi_nolock (vi->ubi_num, vi->vol_id);if (!gluebi) { -err_msg ("got remove notification for unknown UBI device %d " -"volume %d" , vi->ubi_num, vi->vol_id); +err_msg ("got remove notification for unknown UBI device %d volume %d" , + vi->ubi_num, vi->vol_id); err = -ENOENT ; }else if (gluebi->refcnt) err = -EBUSY ;
@@ -390,9 +389,8 @@ static int gluebi_remove(struct ubi_volume_info *vi) mtd = &gluebi->mtd; err =mtd_device_unregister (mtd);if (err) { -err_msg ("cannot remove fake MTD device %d, UBI device %d, " -"volume %d, error %d" , mtd->index, gluebi->ubi_num, - gluebi->vol_id, err); +err_msg ("cannot remove fake MTD device %d, UBI device %d, volume %d, error %d" , + mtd->index, gluebi->ubi_num, gluebi->vol_id, err);mutex_lock (&devices_mutex);list_add_tail (&gluebi->list, &gluebi_devices);mutex_unlock (&devices_mutex);
@@ -422,8 +420,8 @@ static int gluebi_updated(struct ubi_volume_info *vi) gluebi =find_gluebi_nolock (vi->ubi_num, vi->vol_id);if (!gluebi) {mutex_unlock (&devices_mutex); -err_msg ("got update notification for unknown UBI device %d " -"volume %d" , vi->ubi_num, vi->vol_id); +err_msg ("got update notification for unknown UBI device %d volume %d" , + vi->ubi_num, vi->vol_id);return -ENOENT ; }
@@ -449,8 +447,8 @@ static int gluebi_resized(struct ubi_volume_info *vi) gluebi =find_gluebi_nolock (vi->ubi_num, vi->vol_id);if (!gluebi) {mutex_unlock (&devices_mutex); -err_msg ("got update notification for unknown UBI device %d " -"volume %d" , vi->ubi_num, vi->vol_id); +err_msg ("got update notification for unknown UBI device %d volume %d" , + vi->ubi_num, vi->vol_id);return -ENOENT ; } gluebi->mtd.size = vi->used_bytes;
@@ -507,9 +505,9 @@ static void __exit ubi_gluebi_exit(void) err =mtd_device_unregister (mtd);if (err) -err_msg ("error %d while removing gluebi MTD device %d, " -"UBI device %d, volume %d - ignoring" , err, - mtd->index, gluebi->ubi_num, gluebi->vol_id); +err_msg ("error %d while removing gluebi MTD device %d, UBI device %d, volume %d - ignoring" , + err, mtd->index, gluebi->ubi_num, + gluebi->vol_id);kfree (mtd->name);kfree (gluebi); }
drivers/mtd/ubi/io.c +38 -40
168 lines not on this page · raw message
drivers/mtd/ubi/misc.c +1 -3
@@ -128,9 +128,7 @@ void ubi_calculate_reserved(struct ubi_device *ubi) ubi->beb_rsvd_level = ubi->bad_peb_limit - ubi->bad_peb_count;if (ubi->beb_rsvd_level <0 ) { ubi->beb_rsvd_level =0 ; -ubi_warn ("number of bad PEBs (%d) is above the expected limit " -"(%d), not reserving any PEBs for bad PEB handling, " -"will use available PEBs (if any)" , +ubi_warn ("number of bad PEBs (%d) is above the expected limit (%d), not reserving any PEBs for bad PEB handling, will use available PEBs (if any)" , ubi->bad_peb_count, ubi->bad_peb_limit); } }
drivers/mtd/ubi/vtbl.c +4 -4
@@ -270,8 +270,8 @@ static int vtbl_check(const struct ubi_device *ubi,if (len1 >0 && len1 == len2 && !strncmp (vtbl[i].name, vtbl[n].name, len1)) { -ubi_err ("volumes %d and %d have the same name" -" \"%s\"" , i, n, vtbl[i].name); +ubi_err ("volumes %d and %d have the same name \"%s\"" , + i, n, vtbl[i].name);ubi_dump_vtbl_record (&vtbl[i], i);ubi_dump_vtbl_record (&vtbl[n], n);return -EINVAL ;
@@ -562,8 +562,8 @@ static int init_volumes(struct ubi_device *ubi,if (vtbl[i].flags &UBI_VTBL_AUTORESIZE_FLG ) {/* Auto re-size flag may be set only for one volume */ if (ubi->autoresize_vol_id !=-1 ) { -ubi_err ("more than one auto-resize volume (%d " -"and %d)" , ubi->autoresize_vol_id, i); +ubi_err ("more than one auto-resize volume (%d and %d)" , + ubi->autoresize_vol_id, i);kfree (vol);return -EINVAL ; }
Signature · 1 line
1.7.10.4