Skip to content

Commit

Permalink
Format correctly affinity info messages
Browse files Browse the repository at this point in the history
  • Loading branch information
ademakov committed May 17, 2019
1 parent 95bb1bf commit 1bf0829
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/thread-test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ thread_routine()
void
print_affinity(const evenk::thread::cpuset_type &affinity)
{
std::cout << "CPU affinity info ";
std::cout << "CPU affinity info";
if (affinity.size() == 0) {
std::cout << "is not available";
std::cout << " is not available";
} else {
std::cout << ':' << affinity.size() << " CPUs:";
std::cout << ": " << affinity.size() << " CPUs:";
for (std::size_t cpu = 0; cpu < affinity.size(); cpu++)
if (affinity[cpu])
std::cout << " " << cpu;
Expand Down

0 comments on commit 1bf0829

Please sign in to comment.