trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jpe...@apache.org
Subject git commit: TS-2476: fix size_t format string
Date Wed, 08 Jan 2014 17:58:42 GMT
Updated Branches:
  refs/heads/master 7fd40eba2 -> 7549b2945


TS-2476: fix size_t format string


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/7549b294
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/7549b294
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/7549b294

Branch: refs/heads/master
Commit: 7549b2945f60957891b4e42a8b4aa6c8cd03b982
Parents: 7fd40eb
Author: Radim Kolar <hsn@sendmail.cz>
Authored: Wed Jan 8 09:58:16 2014 -0800
Committer: James Peach <jpeach@apache.org>
Committed: Wed Jan 8 09:58:16 2014 -0800

----------------------------------------------------------------------
 CHANGES                     | 3 +++
 lib/atscppapi/src/Logger.cc | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/7549b294/CHANGES
----------------------------------------------------------------------
diff --git a/CHANGES b/CHANGES
index 2835c24..af6a08a 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,9 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache Traffic Server 4.2.0
 
+  *) [TS-2476] Fix size_t format string.
+   Author: Radim Kolar <hsn@sendmail.cz>
+
   *) [TS-2471] Writing records.config can fail when the disk is full.
    Author: Yu Qing <zhuangyuan@taobao.com>
 

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/7549b294/lib/atscppapi/src/Logger.cc
----------------------------------------------------------------------
diff --git a/lib/atscppapi/src/Logger.cc b/lib/atscppapi/src/Logger.cc
index c08202a..8302a3f 100644
--- a/lib/atscppapi/src/Logger.cc
+++ b/lib/atscppapi/src/Logger.cc
@@ -189,7 +189,7 @@ const int DEFAULT_BUFFER_SIZE_FOR_VARARGS = 8*1024;
        LOG_DEBUG("logging a " level " to '%s' with length %d", state_->filename_.c_str(),
n); \
        TSTextLogObjectWrite(state_->text_log_obj_, const_cast<char*>("[" level "]
%s"), buffer); \
      } else { \
-       LOG_ERROR("Unable to log " level " message to '%s' due to size exceeding %lud bytes.",
state_->filename_.c_str(), sizeof(buffer)); \
+       LOG_ERROR("Unable to log " level " message to '%s' due to size exceeding %zu bytes",
state_->filename_.c_str(), sizeof(buffer)); \
      } \
      return; \
     }


Mime
View raw message