trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zw...@apache.org
Subject [trafficserver] 02/02: LGTM: Fix wrong type of arguments to formatting function
Date Sun, 22 Dec 2019 19:56:26 GMT
This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git

commit c9edddd3dfb82288793220843fa13039a3f35dd1
Author: Masaori Koshiba <masaori@apache.org>
AuthorDate: Wed Dec 18 09:06:03 2019 +0900

    LGTM: Fix wrong type of arguments to formatting function
    
    (cherry picked from commit 721efc3b8b5f1d1ac2b11ac2c6019ea62eb91e20)
---
 proxy/http/HttpPages.cc | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/proxy/http/HttpPages.cc b/proxy/http/HttpPages.cc
index 44dc0d1..37061da 100644
--- a/proxy/http/HttpPages.cc
+++ b/proxy/http/HttpPages.cc
@@ -134,16 +134,16 @@ HttpPagesHandler::dump_tunnel_info(HttpSM *sm)
       // Col 3 - ndone
       resp_begin_column();
       if (producer.alive && producer.read_vio) {
-        resp_add("%d", producer.read_vio->ndone);
+        resp_add("%" PRId64, producer.read_vio->ndone);
       } else {
-        resp_add("%d", producer.bytes_read);
+        resp_add("%" PRId64, producer.bytes_read);
       }
       resp_end_column();
 
       // Col 4 - nbytes
       resp_begin_column();
       if (producer.alive && producer.read_vio) {
-        resp_add("%d", producer.read_vio->nbytes);
+        resp_add("%" PRId64, producer.read_vio->nbytes);
       } else {
         resp_add("-");
       }
@@ -173,16 +173,16 @@ HttpPagesHandler::dump_tunnel_info(HttpSM *sm)
       // Col 3 - ndone
       resp_begin_column();
       if (consumer.alive && consumer.write_vio) {
-        resp_add("%d", consumer.write_vio->ndone);
+        resp_add("%" PRId64, consumer.write_vio->ndone);
       } else {
-        resp_add("%d", consumer.bytes_written);
+        resp_add("%" PRId64, consumer.bytes_written);
       }
       resp_end_column();
 
       // Col 4 - nbytes
       resp_begin_column();
       if (consumer.alive && consumer.write_vio) {
-        resp_add("%d", consumer.write_vio->nbytes);
+        resp_add("%" PRId64, consumer.write_vio->nbytes);
       } else {
         resp_add("-");
       }
@@ -191,7 +191,7 @@ HttpPagesHandler::dump_tunnel_info(HttpSM *sm)
       // Col 5 - read avail
       resp_begin_column();
       if (consumer.alive && consumer.buffer_reader) {
-        resp_add("%d", consumer.buffer_reader->read_avail());
+        resp_add("%" PRId64, consumer.buffer_reader->read_avail());
       } else {
         resp_add("-");
       }


Mime
View raw message