[Openmp-commits] [PATCH] D41853: [OMPT] Fix cast and printf of wait_id in lock test
Jonas Hahnfeld via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Tue Jan 9 02:08:54 PST 2018
Hahnfeld created this revision.
Hahnfeld added reviewers: protze.joachim, pawosm01.
Herald added a subscriber: openmp-commits.
This didn't work on 32 bit platforms.
Repository:
rOMP OpenMP
https://reviews.llvm.org/D41853
Files:
runtime/test/ompt/synchronization/lock.c
Index: runtime/test/ompt/synchronization/lock.c
===================================================================
--- runtime/test/ompt/synchronization/lock.c
+++ runtime/test/ompt/synchronization/lock.c
@@ -10,7 +10,7 @@
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);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41853.129048.patch
Type: text/x-patch
Size: 531 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20180109/d63ce95c/attachment.bin>
More information about the Openmp-commits
mailing list