summaryrefslogtreecommitdiff
path: root/ubi-utils
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@intel.com>2011-11-18 23:53:11 +0200
committerArtem Bityutskiy <Artem.Bityutskiy@intel.com>2011-11-18 23:53:11 +0200
commitf8aa6922dde02835ba97e84be41f387cdd38ec7d (patch)
tree171914942c226c733a9781cd8b0ca4ebeba3233d /ubi-utils
parent97bb4aa681f4df5e784c1f8a8db049a95a0d65c6 (diff)
parent0970bf408707d610e88abb069b123e267aeb42f8 (diff)
Merge branch 'brian'v1.4.7
Diffstat (limited to 'ubi-utils')
-rw-r--r--ubi-utils/ubiformat.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ubi-utils/ubiformat.c b/ubi-utils/ubiformat.c
index c396b09..a265a9a 100644
--- a/ubi-utils/ubiformat.c
+++ b/ubi-utils/ubiformat.c
@@ -537,7 +537,8 @@ static int flash_image(libmtd_t libmtd, const struct mtd_dev_info *mtd,
new_len = drop_ffs(mtd, buf, mtd->eb_size);
- err = mtd_write(mtd, args.node_fd, eb, 0, buf, new_len);
+ err = mtd_write(libmtd, mtd, args.node_fd, eb, 0, buf, new_len,
+ NULL, 0, 0);
if (err) {
sys_errmsg("cannot write eraseblock %d", eb);
@@ -647,7 +648,8 @@ static int format(libmtd_t libmtd, const struct mtd_dev_info *mtd,
fflush(stdout);
}
- err = mtd_write(mtd, args.node_fd, eb, 0, hdr, write_size);
+ err = mtd_write(libmtd, mtd, args.node_fd, eb, 0, hdr,
+ write_size, NULL, 0, 0);
if (err) {
if (!args.quiet && !args.verbose)
printf("\n");