[Openmp-commits] [openmp] r322160 - [OMPT] Fix cast and printf of wait_id in lock test
Jonas Hahnfeld via Openmp-commits
openmp-commits at lists.llvm.org
Wed Jan 10 00:10:24 PST 2018
Author: hahnfeld
Date: Wed Jan 10 00:10:23 2018
New Revision: 322160
URL: http://llvm.org/viewvc/llvm-project?rev=322160&view=rev
Log:
[OMPT] Fix cast and printf of wait_id in lock test
This didn't work on 32 bit platforms.
Differential Revision: https://reviews.llvm.org/D41853
Modified:
openmp/trunk/runtime/test/ompt/synchronization/lock.c
Modified: openmp/trunk/runtime/test/ompt/synchronization/lock.c
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/test/ompt/synchronization/lock.c?rev=322160&r1=322159&r2=322160&view=diff
==============================================================================
--- openmp/trunk/runtime/test/ompt/synchronization/lock.c (original)
+++ openmp/trunk/runtime/test/ompt/synchronization/lock.c Wed Jan 10 00:10:23 2018
@@ -10,7 +10,7 @@ int main()
print_ids(0);
omp_lock_t lock;
- printf("%" PRIu64 ": &lock: %lli\n", ompt_get_thread_data()->value, (long long) &lock);
+ printf("%" PRIu64 ": &lock: %" PRIu64 "\n", ompt_get_thread_data()->value, (uint64_t) &lock);
omp_init_lock(&lock);
print_current_address(1);
omp_set_lock(&lock);
More information about the Openmp-commits
mailing list