[llvm-commits] [test-suite] r58543 - in /test-suite/trunk/MultiSource/Benchmarks/MiBench/security-sha: sha.c sha.h
Dan Gohman
gohman at apple.com
Fri Oct 31 18:18:06 PDT 2008
Author: djg
Date: Fri Oct 31 20:18:06 2008
New Revision: 58543
URL: http://llvm.org/viewvc/llvm-project?rev=58543&view=rev
Log:
Fix a printf format specifier mismatch. This caused spurious failures
on LP64 targets.
Modified:
test-suite/trunk/MultiSource/Benchmarks/MiBench/security-sha/sha.c
test-suite/trunk/MultiSource/Benchmarks/MiBench/security-sha/sha.h
Modified: test-suite/trunk/MultiSource/Benchmarks/MiBench/security-sha/sha.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/MiBench/security-sha/sha.c?rev=58543&r1=58542&r2=58543&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/MiBench/security-sha/sha.c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/MiBench/security-sha/sha.c Fri Oct 31 20:18:06 2008
@@ -204,7 +204,8 @@
void sha_print(SHA_INFO *sha_info)
{
- printf("%08lx %08lx %08lx %08lx %08lx\n",
+ printf("%08" PRIx32 " %08" PRIx32 " %08" PRIx32
+ " %08" PRIx32 " %08" PRIx32 "\n",
sha_info->digest[0], sha_info->digest[1], sha_info->digest[2],
sha_info->digest[3], sha_info->digest[4]);
}
Modified: test-suite/trunk/MultiSource/Benchmarks/MiBench/security-sha/sha.h
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/MiBench/security-sha/sha.h?rev=58543&r1=58542&r2=58543&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/MiBench/security-sha/sha.h (original)
+++ test-suite/trunk/MultiSource/Benchmarks/MiBench/security-sha/sha.h Fri Oct 31 20:18:06 2008
@@ -6,8 +6,10 @@
/* Useful defines & typedefs */
+#include <inttypes.h>
+
typedef unsigned char BYTE;
-typedef unsigned int LONG;
+typedef uint32_t LONG;
#define SHA_BLOCKSIZE 64
#define SHA_DIGESTSIZE 20
More information about the llvm-commits
mailing list