Skip to content

Commit d23bd7d

Browse files
authored
Merge pull request #2978 from E3SM-Project/ambrad/eamxx/hash-PRIx64-16
EAMxx: Fix PRIx64 usage to include width 16.
2 parents 68f648a + 2d24c11 commit d23bd7d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/eamxx/src/share/atm_process/atmosphere_process_hash.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ ::print_global_state_hash (const std::string& label, const bool in, const bool o
129129
if (m_comm.am_i_root())
130130
for (int i = 0; i < nslot; ++i)
131131
if (show[i])
132-
fprintf(stderr, "exxhash> %4d-%9.5f %1d %" PRIx64 " (%s)\n",
132+
fprintf(stderr, "exxhash> %4d-%9.5f %1d %16" PRIx64 " (%s)\n",
133133
timestamp().get_year(), timestamp().frac_of_year_in_days(),
134134
i, gaccum[i], label.c_str());
135135
}
@@ -140,7 +140,7 @@ void AtmosphereProcess::print_fast_global_state_hash (const std::string& label)
140140
HashType gaccum;
141141
bfbhash::all_reduce_HashType(m_comm.mpi_comm(), &laccum, &gaccum, 1);
142142
if (m_comm.am_i_root())
143-
fprintf(stderr, "bfbhash> %14d %" PRIx64 " (%s)\n",
143+
fprintf(stderr, "bfbhash> %14d %16" PRIx64 " (%s)\n",
144144
timestamp().get_num_steps(), gaccum, label.c_str());
145145
}
146146

0 commit comments

Comments
 (0)