trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mas...@apache.org
Subject [trafficserver] branch quic-latest updated: Use cross-platform print format
Date Wed, 09 Aug 2017 01:30:16 GMT
This is an automated email from the ASF dual-hosted git repository.

maskit pushed a commit to branch quic-latest
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/quic-latest by this push:
     new a080d20  Use cross-platform print format
a080d20 is described below

commit a080d20eff91423956bed23f4f57879cb1d8e1a4
Author: Masakazu Kitajo <maskit@apache.org>
AuthorDate: Wed Aug 9 10:26:37 2017 +0900

    Use cross-platform print format
---
 iocore/net/QUICNetVConnection.cc | 4 ++--
 iocore/net/QUICPacketHandler.cc  | 4 ++--
 iocore/net/quic/QUICHandshake.cc | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/iocore/net/QUICNetVConnection.cc b/iocore/net/QUICNetVConnection.cc
index 1ff56e3..afb4226 100644
--- a/iocore/net/QUICNetVConnection.cc
+++ b/iocore/net/QUICNetVConnection.cc
@@ -413,8 +413,8 @@ QUICNetVConnection::_state_connection_established_process_packet(std::unique_ptr
 
   if (this->_crypto->decrypt(plain_txt.get(), plain_txt_len, max_plain_txt_len, packet->payload(),
packet->payload_size(),
                              packet->packet_number(), packet->header(), packet->header_size(),
packet->key_phase())) {
-    Debug(tag, "Decrypt Packet, pkt_num: %lu, header_len: %hu, payload_len: %zu", packet->packet_number(),
packet->header_size(),
-          plain_txt_len);
+    Debug(tag, "Decrypt Packet, pkt_num: %" PRIu64 ", header_len: %hu, payload_len: %zu",
packet->packet_number(),
+          packet->header_size(), plain_txt_len);
 
     this->_recv_and_ack(plain_txt.get(), plain_txt_len, packet->packet_number());
 
diff --git a/iocore/net/QUICPacketHandler.cc b/iocore/net/QUICPacketHandler.cc
index 59ea5cc..47e0505 100644
--- a/iocore/net/QUICPacketHandler.cc
+++ b/iocore/net/QUICPacketHandler.cc
@@ -67,7 +67,7 @@ QUICPacketHandler::acceptEvent(int event, void *data)
     UDPPacket *packet_r;
     ip_port_text_buffer ipb;
     while ((packet_r = queue->dequeue())) {
-      Debug("quic_sec", "received packet from %s, size=%ld", ats_ip_nptop(&packet_r->from.sa,
ipb, sizeof(ipb)),
+      Debug("quic_sec", "received packet from %s, size=%" PRId64, ats_ip_nptop(&packet_r->from.sa,
ipb, sizeof(ipb)),
             packet_r->getPktLength());
       this->_recv_packet(event, packet_r);
     }
@@ -142,7 +142,7 @@ QUICPacketHandler::send_packet(const QUICPacket &packet, QUICNetVConnection
*vc)
 
   // NOTE: p will be enqueued to udpOutQueue of UDPNetHandler
   ip_port_text_buffer ipb;
-  Debug("quic_sec", "send %s packet to %s, size=%ld", QUICDebugNames::packet_type(packet.type()),
+  Debug("quic_sec", "send %s packet to %s, size=%" PRId64, QUICDebugNames::packet_type(packet.type()),
         ats_ip_nptop(&udpPkt->to.sa, ipb, sizeof(ipb)), udpPkt->getPktLength());
   vc->get_udp_con()->send(this, udpPkt);
 }
diff --git a/iocore/net/quic/QUICHandshake.cc b/iocore/net/quic/QUICHandshake.cc
index b1761b6..f5b0753 100644
--- a/iocore/net/quic/QUICHandshake.cc
+++ b/iocore/net/quic/QUICHandshake.cc
@@ -30,7 +30,7 @@
 #define I_WANNA_DUMP_THIS_BUF(buf, len)                                                 
                                         \
   {                                                                                     
                                         \
     int i, j;                                                                           
                                         \
-    fprintf(stderr, "len=%ld\n", len);                                                  
                                         \
+    fprintf(stderr, "len=%" PRId64 "\n", len);                                          
                                         \
     for (i = 0; i < len / 8; i++) {                                                  
                                            \
       fprintf(stderr, "%02x %02x %02x %02x %02x %02x %02x %02x ", buf[i * 8 + 0], buf[i *
8 + 1], buf[i * 8 + 2], buf[i * 8 + 3], \
               buf[i * 8 + 4], buf[i * 8 + 5], buf[i * 8 + 6], buf[i * 8 + 7]);          
                                         \

-- 
To stop receiving notification emails like this one, please contact
['"commits@trafficserver.apache.org" <commits@trafficserver.apache.org>'].

Mime
View raw message