From: Seung-Woo Kim Date: Thu, 20 Jun 2024 05:35:23 +0000 (+0900) Subject: dfu: Update file open fail log with its path X-Git-Tag: accepted/tizen/8.0/unified/20240620.153545^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Faccepted%2Ftizen_8.0_unified;p=platform%2Fcore%2Fsystem%2Finitrd-flash.git dfu: Update file open fail log with its path 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 --- diff --git a/src/dfu.c b/src/dfu.c index 25dd0de..6fcebe9 100644 --- a/src/dfu.c +++ b/src/dfu.c @@ -496,7 +496,7 @@ static int find_slot_b(struct dfu_context *ctx, char *name) { 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; } @@ -548,8 +548,8 @@ static int dfu_start_entry(struct dfu_entry *e, char **entry, uint64_t size) 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; }