Replace remaining fprintf/stderr calls to WARN.
authorJason Self <j@jxself.org>
Mon, 28 Sep 2015 00:50:47 +0000 (17:50 -0700)
committerJason Self <j@jxself.org>
Mon, 28 Sep 2015 00:50:47 +0000 (17:50 -0700)
skein_cli.c

index 4f13c7bd2e5d36279e43b4ae45e480b04960f734..706091e4c7359c60046db0c46f9f5ab0f4daae03 100644 (file)
@@ -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))