]> granicus.if.org Git - apache/commitdiff
* modules/proxy/ajp_msg.c (ajp_msg_dump, ajp_msg_check_header,
authorJoe Orton <jorton@apache.org>
Thu, 22 Feb 2007 14:12:14 +0000 (14:12 +0000)
committerJoe Orton <jorton@apache.org>
Thu, 22 Feb 2007 14:12:14 +0000 (14:12 +0000)
asj_msg_copy): Fix format string warnings on x86_64.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@510522 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/ajp_msg.c

index db8b6946cc0ec53e92066f4690541a7e6ecade3c..f12805e338c2d55337696f2d6abf3af250711405 100644 (file)
@@ -43,7 +43,7 @@ char * ajp_msg_dump(apr_pool_t *pool, ajp_msg_t *msg, char *err)
     rv = apr_palloc(pool, bl);
     apr_snprintf(rv, bl,
                  "ajp_msg_dump(): %s pos=%" APR_SIZE_T_FMT
-                 " len=%" APR_SIZE_T_FMT " max=%d\n",
+                 " len=%" APR_SIZE_T_FMT " max=%" APR_SIZE_T_FMT "\n",
                  err, msg->pos, msg->len, msg->max_size);
     bl -= strlen(rv);
     p = rv + strlen(rv);
@@ -112,7 +112,7 @@ apr_status_t ajp_msg_check_header(ajp_msg_t *msg, apr_size_t *len)
     if (msglen > msg->max_size) {
         ap_log_error(APLOG_MARK, APLOG_ERR, 0, NULL,
                      "ajp_check_msg_header() incoming message is "
-                     "too big %" APR_SIZE_T_FMT ", max is %d",
+                     "too big %" APR_SIZE_T_FMT ", max is %" APR_SIZE_T_FMT,
                      msglen, msg->max_size);
         return AJP_ETOBIG;
     }
@@ -551,7 +551,7 @@ apr_status_t ajp_msg_copy(ajp_msg_t *smsg, ajp_msg_t *dmsg)
     if (smsg->len > smsg->max_size) {
         ap_log_error(APLOG_MARK, APLOG_ERR, 0, NULL,
                      "ajp_msg_copy(): destination buffer too "
-                     "small %" APR_SIZE_T_FMT ", max size is %d",
+                     "small %" APR_SIZE_T_FMT ", max size is %" APR_SIZE_T_FMT,
                      smsg->len, smsg->max_size);
         return  AJP_ETOSMALL;
     }