X-Git-Url: https://jxself.org/git/?p=skeinsum.git;a=blobdiff_plain;f=skein_cli.c;h=706091e4c7359c60046db0c46f9f5ab0f4daae03;hp=4f13c7bd2e5d36279e43b4ae45e480b04960f734;hb=3dfce07c702e1e59478cc9d4e3afea359a1b62f8;hpb=65919886f95d5e68de916da1d20aad7e2a135ff4 diff --git a/skein_cli.c b/skein_cli.c index 4f13c7b..706091e 100644 --- a/skein_cli.c +++ b/skein_cli.c @@ -330,14 +330,16 @@ int VerifyHashesFromFile(FILE *fp, int status, int warn, int quiet) int hashVersion = decomposeHashLine(hash,MsgDigest_tmp,file_tmp); if (hashVersion == -1) { - fprintf(stderr, "skein%d: %s is using newer version of skein%d algorithm\n",hashbitlen,file_tmp,hashbitlen); - fprintf(stderr, "You should update your algorithm\n"); + WARN("%s is using newer version of skein%d algorithm\n" + "You should update your algorithm\n", + file_tmp, hashbitlen); continue; } else if (hashVersion == 0) { - fprintf(stderr, "skein%d: %s is using an older version of skein%d algorithm\n",hashbitlen,file_tmp,hashbitlen); - fprintf(stderr, "You should use the older algorithm\n"); + WARN("%s is using an older version of skein%d algorithm\n" + "You should use the older algorithm\n", + file_tmp, hashbitlen); continue; } else if (!isProper(MsgDigest_tmp))