When splitting /hal directory, there can be no files under /hal
directory. Add explicit error log about failure to open device
speicif file.
Change-Id: Icf14faac406035927cec00e4a46595e1d7559edd
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
int ret;
fp = fopen(entry_file, "r");
- if (!fp)
+ if (!fp) {
+ fprintf(stderr, "Cannot open partition information: %s\n",
+ entry_file);
return -ENOENT;
+ }
while (i < DFU_ENTRY_LIST_MAXLEN && !feof(fp)) {
if (fgets(buf, 1024, fp) == NULL)