Fix wrong filename printed in open failure message.

The eeprom filename was printed instead of flash filename.
This really confused me.
pull/19/head
Wouter van Gulik 2023-12-18 22:08:16 +13:00
rodzic 6eb4ac3822
commit 32b6d4bb9d
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -990,7 +990,7 @@ int main(int argc,char **argv)
ffd=open(flash_file,O_RDONLY); ffd=open(flash_file,O_RDONLY);
if (ffd<0) { if (ffd<0) {
fprintf(stderr,"open %s error %d %s\n", file, errno, strerror(errno)); fprintf(stderr,"open %s error %d %s\n", flash_file, errno, strerror(errno));
exit(1); exit(1);
} }
flash_length=read(ffd,(unsigned char *)&flash,UVK5_MAX_FLASH_SIZE); flash_length=read(ffd,(unsigned char *)&flash,UVK5_MAX_FLASH_SIZE);