Skip to content
Snippets Groups Projects
Commit 66427720 authored by Łukasz Majewski's avatar Łukasz Majewski Committed by Tom Rini
Browse files

dfu:ext4:fix: Change ext4write command order of parameters


Following commit:
"cmd_ext4: BREAK and correct ext4write parameter order"
SHA1:0171d52c

introduced cleanup of ext4write semantics to be consistent with other
filesystem's writing commands (e.g. fatwrite).
This commit provides correct ext4write command generation at DFU eMMC
code.

Signed-off-by: default avatarLukasz Majewski <l.majewski@samsung.com>
Signed-off-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
parent cd0f4fa1
No related branches found
No related tags found
No related merge requests found
...@@ -72,10 +72,10 @@ static int mmc_file_op(enum dfu_mmc_op op, struct dfu_entity *dfu, ...@@ -72,10 +72,10 @@ static int mmc_file_op(enum dfu_mmc_op op, struct dfu_entity *dfu,
(unsigned int) buf, dfu->name, *len); (unsigned int) buf, dfu->name, *len);
break; break;
case DFU_FS_EXT4: case DFU_FS_EXT4:
sprintf(cmd_buf, "ext4%s mmc %d:%d /%s 0x%x %ld", sprintf(cmd_buf, "ext4%s mmc %d:%d 0x%x /%s %ld",
op == DFU_OP_READ ? "load" : "write", op == DFU_OP_READ ? "load" : "write",
dfu->data.mmc.dev, dfu->data.mmc.part, dfu->data.mmc.dev, dfu->data.mmc.part,
dfu->name, (unsigned int) buf, *len); (unsigned int) buf, dfu->name, *len);
break; break;
default: default:
printf("%s: Layout (%s) not (yet) supported!\n", __func__, printf("%s: Layout (%s) not (yet) supported!\n", __func__,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment