X-Git-Url: https://jxself.org/git/?p=carl9170fw.git;a=blobdiff_plain;f=tools%2Fsrc%2Fchecksum.c;h=b39417494b8cc2b4eb7a5b82c98aad47099d4f85;hp=7d1ae35dac906eeb33e2a0e0282185c8e13361dd;hb=e017a914b2679d669e201cc76f812b641aa7eea3;hpb=e72388a0aa23da8bc8e24a0cbe9d523c5a9ce294 diff --git a/tools/src/checksum.c b/tools/src/checksum.c index 7d1ae35..b394174 100644 --- a/tools/src/checksum.c +++ b/tools/src/checksum.c @@ -1,5 +1,5 @@ /* - * Copyright 2010, Christian Lamparter + * Copyright 2010-2011 Christian Lamparter * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -54,8 +54,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; }