The open fail log shows only image name, but it is not enough.
Update file open fail log with failure file path.
Change-Id: I27c2ea95b7f5813004975fb83a9825e8b1b82ebe
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
fd = open(file, O_WRONLY);
if (fd < 0) {
fprintf(stderr,
- "cannot open target: %s\n", name);
+ "cannot open %s for target: %s\n", file, name);
fd = -EIO;
}
fd = open(file, O_WRONLY);
if (fd < 0) {
fprintf(stderr,
- "cannot open target: %s\n",
- entry[DFU_INFO_NAME]);
+ "cannot open %s for target: %s\n",
+ file, entry[DFU_INFO_NAME]);
ret = -EIO;
goto err;
}