projects
/
skeinsum.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
ae618fc
)
Replace remaining fprintf/stderr calls to WARN.
author
Jason Self
<j@jxself.org>
Mon, 28 Sep 2015 00:50:47 +0000
(17:50 -0700)
committer
Jason Self
<j@jxself.org>
Mon, 28 Sep 2015 00:50:47 +0000
(17:50 -0700)
skein_cli.c
patch
|
blob
|
history
diff --git
a/skein_cli.c
b/skein_cli.c
index 4f13c7bd2e5d36279e43b4ae45e480b04960f734..706091e4c7359c60046db0c46f9f5ab0f4daae03 100644
(file)
--- 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)
{
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)
{
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))
continue;
}
else if (!isProper(MsgDigest_tmp))