X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=tools%2Fsrc%2Feeprom_fix.c;h=1786b87a132e45ec7cd4993795d5a91dfe9fa4af;hb=1999e162e83656d48ede992f37923c6efa85b123;hp=7f28179a4acbab43d975ffdc9d2357af1c811113;hpb=e72388a0aa23da8bc8e24a0cbe9d523c5a9ce294;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; }