]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - tools/fit_check_sign.c
x86: ifdtool: Add support for early microcode access
[karo-tx-uboot.git] / tools / fit_check_sign.c
index e1198bca4498983593b31b9afd16b35c7713c202..69e99c0d179e048231b8c6ef0429e47e54ec3cfe 100644 (file)
@@ -80,11 +80,13 @@ int main(int argc, char **argv)
 
        image_set_host_blob(key_blob);
        ret = fit_check_sign(fit_blob, key_blob);
-
-       if (ret)
+       if (!ret) {
                ret = EXIT_SUCCESS;
-       else
+               fprintf(stderr, "Signature check OK\n");
+       } else {
                ret = EXIT_FAILURE;
+               fprintf(stderr, "Signature check Bad (error %d)\n", ret);
+       }
 
        (void) munmap((void *)fit_blob, fsbuf.st_size);
        (void) munmap((void *)key_blob, ksbuf.st_size);