X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=tools%2Fsrc%2Feeprom_fix.c;fp=tools%2Fsrc%2Feeprom_fix.c;h=1786b87a132e45ec7cd4993795d5a91dfe9fa4af;hb=712e9bb023a8251ab32d15f6e46c4bf815ca91ab;hp=7f28179a4acbab43d975ffdc9d2357af1c811113;hpb=6e287f3e8868aefeb7289bd13e391266d31566fc;p=carl9170fw.git diff --git a/tools/src/eeprom_fix.c b/tools/src/eeprom_fix.c index 7f28179..1786b87 100644 --- a/tools/src/eeprom_fix.c +++ b/tools/src/eeprom_fix.c @@ -275,8 +275,9 @@ int main(int argc, char *args[]) fw = carlfw_load(args[1]); if (IS_ERR_OR_NULL(fw)) { + err = PTR_ERR(fw); fprintf(stderr, "Failed to open file \"%s\" (%d).\n", - args[1], (int) PTR_ERR(fw)); + args[1], err); goto out; }