Skip to content

Commit c2cfa19

Browse files
committed
🐛 changing type of CUDA format string
1 parent 1069205 commit c2cfa19

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/coreComponents/common/logger/Logger.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -190,12 +190,12 @@
190190
{ \
191191
if( COND ) \
192192
{ \
193-
static char const formatString[] = "***** ERROR\n" \
194-
"***** LOCATION" LOCATION "\n" \
195-
"***** BLOCK: [%u, %u, %u]\n" \
196-
"***** THREAD: [%u, %u, %u]\n" \
197-
"***** " STRINGIZE( CAUSE_MESSAGE ) "\n" \
198-
"***** " STRINGIZE( GEOS_DETAIL_FIRST_ARG( __VA_ARGS__ ) ) "\n\n"; \
193+
constexpr char const * formatString = "***** ERROR\n" \
194+
"***** LOCATION" LOCATION "\n" \
195+
"***** BLOCK: [%u, %u, %u]\n" \
196+
"***** THREAD: [%u, %u, %u]\n" \
197+
"***** " STRINGIZE( CAUSE_MESSAGE ) "\n" \
198+
"***** " STRINGIZE( GEOS_DETAIL_FIRST_ARG( __VA_ARGS__ ) ) "\n\n"; \
199199
printf( formatString, blockIdx.x, blockIdx.y, blockIdx.z, threadIdx.x, threadIdx.y, threadIdx.z ); \
200200
asm ( "trap;" ); \
201201
} \

0 commit comments

Comments
 (0)