Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id C4C29200BD4 for ; Fri, 16 Dec 2016 15:43:09 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id C36EC160B24; Fri, 16 Dec 2016 14:43:09 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 0D677160AF6 for ; Fri, 16 Dec 2016 15:43:08 +0100 (CET) Received: (qmail 84498 invoked by uid 500); 16 Dec 2016 14:43:08 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 84489 invoked by uid 99); 16 Dec 2016 14:43:08 -0000 Received: from Unknown (HELO svn01-us-west.apache.org) (209.188.14.144) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Dec 2016 14:43:08 +0000 Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id 568093A04C1 for ; Fri, 16 Dec 2016 14:43:07 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1774602 - /httpd/httpd/trunk/modules/cache/mod_socache_memcache.c Date: Fri, 16 Dec 2016 14:43:06 -0000 To: cvs@httpd.apache.org From: rjung@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20161216144307.568093A04C1@svn01-us-west.apache.org> archived-at: Fri, 16 Dec 2016 14:43:10 -0000 Author: rjung Date: Fri Dec 16 14:43:06 2016 New Revision: 1774602 URL: http://svn.apache.org/viewvc?rev=1774602&view=rev Log: Use correct format pattern, "%lu" is wrong for apr_uint64_t on some platforms. Followup to r1649491. Modified: httpd/httpd/trunk/modules/cache/mod_socache_memcache.c Modified: httpd/httpd/trunk/modules/cache/mod_socache_memcache.c URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/cache/mod_socache_memcache.c?rev=1774602&r1=1774601&r2=1774602&view=diff ============================================================================== --- httpd/httpd/trunk/modules/cache/mod_socache_memcache.c (original) +++ httpd/httpd/trunk/modules/cache/mod_socache_memcache.c Fri Dec 16 14:43:06 2016 @@ -318,15 +318,15 @@ static void socache_mc_status(ap_socache stats->version , stats->pointer_size, stats->pid, stats->uptime/3600); ap_rprintf(r, "Clients:: Structures: %u, Total: %u, Current: %u
\n", stats->connection_structures, stats->total_connections, stats->curr_connections); - ap_rprintf(r, "Storage:: Total Items: %u, Current Items: %u, Bytes: %lu
\n", + ap_rprintf(r, "Storage:: Total Items: %u, Current Items: %u, Bytes: %" APR_UINT64_T_FMT "
\n", stats->total_items, stats->curr_items, stats->bytes); ap_rprintf(r, "CPU:: System: %u, User: %u
\n", (unsigned)stats->rusage_system, (unsigned)stats->rusage_user ); ap_rprintf(r, "Cache:: Gets: %u, Sets: %u, Hits: %u, Misses: %u
\n", stats->cmd_get, stats->cmd_set, stats->get_hits, stats->get_misses); - ap_rprintf(r, "Net:: Input bytes: %lu, Output bytes: %lu
\n", + ap_rprintf(r, "Net:: Input bytes: %" APR_UINT64_T_FMT ", Output bytes: %" APR_UINT64_T_FMT "
\n", stats->bytes_read, stats->bytes_written); - ap_rprintf(r, "Misc:: Evictions: %lu, MaxMem: %u, Threads: %u
\n", + ap_rprintf(r, "Misc:: Evictions: %" APR_UINT64_T_FMT ", MaxMem: %u, Threads: %u
\n", stats->evictions, stats->limit_maxbytes, stats->threads); ap_rputs("

\n", r); } @@ -335,15 +335,15 @@ static void socache_mc_status(ap_socache stats->version , stats->pointer_size, stats->pid, stats->uptime/3600, br); ap_rprintf(r, "Clients:: Structures: %d, Total: %d, Current: %u %s\n", stats->connection_structures, stats->total_connections, stats->curr_connections, br); - ap_rprintf(r, "Storage:: Total Items: %u, Current Items: %u, Bytes: %lu %s\n", + ap_rprintf(r, "Storage:: Total Items: %u, Current Items: %u, Bytes: %" APR_UINT64_T_FMT " %s\n", stats->total_items, stats->curr_items, stats->bytes, br); ap_rprintf(r, "CPU:: System: %u, User: %u %s\n", (unsigned)stats->rusage_system, (unsigned)stats->rusage_user , br); ap_rprintf(r, "Cache:: Gets: %u, Sets: %u, Hits: %u, Misses: %u %s\n", stats->cmd_get, stats->cmd_set, stats->get_hits, stats->get_misses, br); - ap_rprintf(r, "Net:: Input bytes: %lu, Output bytes: %lu %s\n", + ap_rprintf(r, "Net:: Input bytes: %" APR_UINT64_T_FMT ", Output bytes: %" APR_UINT64_T_FMT " %s\n", stats->bytes_read, stats->bytes_written, br); - ap_rprintf(r, "Misc:: Evictions: %lu, MaxMem: %u, Threads: %u %s\n", + ap_rprintf(r, "Misc:: Evictions: %" APR_UINT64_T_FMT ", MaxMem: %u, Threads: %u %s\n", stats->evictions, stats->limit_maxbytes, stats->threads, br); } }