Skip to content

Commit 9c701b7

Browse files
morlov-apexaiJanosch Machowinski
authored and
Janosch Machowinski
committed
Address grammar in log messages
Signed-off-by: Michael Orlov <[email protected]>
1 parent b6f2a29 commit 9c701b7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

rosbag2_compression/src/rosbag2_compression/sequential_compression_writer.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ void SequentialCompressionWriter::compression_thread_fn()
7575
int wanted_thread_priority = *compression_options_.thread_priority;
7676
if (!SetThreadPriority(GetCurrentThread(), wanted_thread_priority)) {
7777
ROSBAG2_COMPRESSION_LOG_WARN_STREAM(
78-
"Could not set thread priority of compression thread to the: " << wanted_thread_priority <<
78+
"Could not set thread priority of compression thread to: " << wanted_thread_priority <<
7979
". Error code: " << GetLastError());
8080
} else {
8181
auto detected_thread_priority = GetThreadPriority(GetCurrentThread());
@@ -84,7 +84,7 @@ void SequentialCompressionWriter::compression_thread_fn()
8484
"Failed to get current thread priority. Error code: " << GetLastError());
8585
} else if (wanted_thread_priority != detected_thread_priority) {
8686
ROSBAG2_COMPRESSION_LOG_WARN_STREAM(
87-
"Could not set thread priority of compression thread to the: " <<
87+
"Could not set thread priority of compression thread to: " <<
8888
wanted_thread_priority << ". Detected thread priority: " << detected_thread_priority);
8989
}
9090
}
@@ -95,13 +95,13 @@ void SequentialCompressionWriter::compression_thread_fn()
9595
int cur_nice_value = getpriority(PRIO_PROCESS, 0);
9696
if (cur_nice_value == -1 && errno != 0) {
9797
ROSBAG2_COMPRESSION_LOG_WARN_STREAM(
98-
"Could not set nice value of compression thread to the: " << wanted_nice_value <<
98+
"Could not set nice value of compression thread to: " << wanted_nice_value <<
9999
" : Could not determine cur nice value");
100100
} else {
101101
int new_nice_value = nice(wanted_nice_value - cur_nice_value);
102102
if ((new_nice_value == -1 && errno != 0)) {
103103
ROSBAG2_COMPRESSION_LOG_WARN_STREAM(
104-
"Could not set nice value of compression thread to the: " << wanted_nice_value <<
104+
"Could not set nice value of compression thread to: " << wanted_nice_value <<
105105
". Error : " << std::strerror(errno));
106106
}
107107
}

0 commit comments

Comments
 (0)