mirror of
https://gitlab.com/obbart/universal_robots_ros_driver.git
synced 2026-04-10 01:50:46 +02:00
Fixed log format error
This commit is contained in:
@@ -112,7 +112,7 @@ ssize_t URStream::receive(uint8_t* buf, size_t buf_len)
|
||||
if (initial) {
|
||||
remainder = be32toh(*(reinterpret_cast<int32_t*>(buf)));
|
||||
if (remainder >= (buf_len - sizeof(int32_t))) {
|
||||
LOG_ERROR("Packet size %d is larger than buffer %d, discarding.", remainder, buf_len);
|
||||
LOG_ERROR("Packet size %zd is larger than buffer %zu, discarding.", remainder, buf_len);
|
||||
return -1;
|
||||
}
|
||||
initial = false;
|
||||
|
||||
Reference in New Issue
Block a user