Skip to content

Commit

Permalink
Update code to avoid build warning on macOS
Browse files Browse the repository at this point in the history
Signed-off-by: Barry Xu <barry.xu@sony.com>
  • Loading branch information
Barry-Xu-2018 committed Dec 22, 2021
1 parent d00623d commit 836dc49
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#include <inttypes.h>

#include <chrono>
#include <functional>
Expand Down Expand Up @@ -60,8 +61,8 @@ class MinimalPublisher : public rclcpp::Node
} else {
RCLCPP_INFO(
this->get_logger(),
"Not all subscribers acknowledge messages during %ld ms",
wait_timeout_.count());
"Not all subscribers acknowledge messages during %" PRId64 " ms",
static_cast<int64_t>(wait_timeout_.count()));
}
}

Expand Down

0 comments on commit 836dc49

Please sign in to comment.