Switch some `QUIC_LOG` lines to `QUIC_PLOG`, which will include the textual expansion of `errno` to the log line.
PiperOrigin-RevId: 670984764
diff --git a/quiche/quic/qbone/bonnet/icmp_reachable.cc b/quiche/quic/qbone/bonnet/icmp_reachable.cc
index bc79dcf..54002e4 100644
--- a/quiche/quic/qbone/bonnet/icmp_reachable.cc
+++ b/quiche/quic/qbone/bonnet/icmp_reachable.cc
@@ -65,26 +65,26 @@
bool IcmpReachable::Init() {
send_fd_ = kernel_->socket(PF_INET6, SOCK_RAW | SOCK_NONBLOCK, IPPROTO_RAW);
if (send_fd_ < 0) {
- QUIC_LOG(ERROR) << "Unable to open socket: " << errno;
+ QUIC_PLOG(ERROR) << "Unable to open socket.";
return false;
}
if (kernel_->bind(send_fd_, reinterpret_cast<struct sockaddr*>(&src_),
sizeof(sockaddr_in6)) < 0) {
- QUIC_LOG(ERROR) << "Unable to bind socket: " << errno;
+ QUIC_PLOG(ERROR) << "Unable to bind socket.";
return false;
}
recv_fd_ =
kernel_->socket(PF_INET6, SOCK_RAW | SOCK_NONBLOCK, IPPROTO_ICMPV6);
if (recv_fd_ < 0) {
- QUIC_LOG(ERROR) << "Unable to open socket: " << errno;
+ QUIC_PLOG(ERROR) << "Unable to open socket.";
return false;
}
if (kernel_->bind(recv_fd_, reinterpret_cast<struct sockaddr*>(&src_),
sizeof(sockaddr_in6)) < 0) {
- QUIC_LOG(ERROR) << "Unable to bind socket: " << errno;
+ QUIC_PLOG(ERROR) << "Unable to bind socket.";
return false;
}