From: Jason Self Date: Mon, 28 Sep 2015 00:50:47 +0000 (-0700) Subject: Replace remaining fprintf/stderr calls to WARN. X-Git-Url: https://jxself.org/git/?p=skeinsum.git;a=commitdiff_plain;h=3dfce07c702e1e59478cc9d4e3afea359a1b62f8;hp=ae618fc884d1b2741e63fc7fc7e9e79f1627f3a5 Replace remaining fprintf/stderr calls to WARN. --- 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))