subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i...@apache.org
Subject svn commit: r1756364 - in /subversion/trunk/subversion: libsvn_fs_fs/cached_data.c libsvn_wc/wc_db_pristine.c
Date Mon, 15 Aug 2016 09:22:02 GMT
Author: ivan
Date: Mon Aug 15 09:22:02 2016
New Revision: 1756364

URL: http://svn.apache.org/viewvc?rev=1756364&view=rev
Log:
Use apr_off_t_toa() instead of apr_psprintf("%" APR_OFF_T_FMT).

* subversion/libsvn_fs_fs/cached_data.c
* subversion/libsvn_wc/wc_db_pristine.c
  (read_item, pristine_install_txn): Use apr_off_t_toa().

Modified:
    subversion/trunk/subversion/libsvn_fs_fs/cached_data.c
    subversion/trunk/subversion/libsvn_wc/wc_db_pristine.c

Modified: subversion/trunk/subversion/libsvn_fs_fs/cached_data.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs_fs/cached_data.c?rev=1756364&r1=1756363&r2=1756364&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_fs_fs/cached_data.c (original)
+++ subversion/trunk/subversion/libsvn_fs_fs/cached_data.c Mon Aug 15 09:22:02 2016
@@ -3379,8 +3379,8 @@ read_item(svn_stream_t **stream,
                  _("Low-level checksum mismatch while reading\n"
                    "%s bytes of meta data at offset %s "
                    "for item %s in revision %ld"),
-                 apr_psprintf(pool, "%" APR_OFF_T_FMT, entry->size),
-                 apr_psprintf(pool, "%" APR_OFF_T_FMT, entry->offset),
+                 apr_off_t_toa(pool, entry->size),
+                 apr_off_t_toa(pool, entry->offset),
                  apr_psprintf(pool, "%" APR_UINT64_T_FMT, entry->item.number),
                  entry->item.revision);
 }

Modified: subversion/trunk/subversion/libsvn_wc/wc_db_pristine.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_wc/wc_db_pristine.c?rev=1756364&r1=1756363&r2=1756364&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_wc/wc_db_pristine.c (original)
+++ subversion/trunk/subversion/libsvn_wc/wc_db_pristine.c Mon Aug 15 09:22:02 2016
@@ -319,8 +319,8 @@ pristine_install_txn(svn_sqlite__db_t *s
               SVN_ERR_WC_CORRUPT_TEXT_BASE, NULL,
               _("New pristine text '%s' has different size: %s versus %s"),
               svn_checksum_to_cstring_display(sha1_checksum, scratch_pool),
-              apr_psprintf(scratch_pool, "%" APR_OFF_T_FMT, finfo1.size),
-              apr_psprintf(scratch_pool, "%" APR_OFF_T_FMT, finfo2.size));
+              apr_off_t_toa(scratch_pool, finfo1.size),
+              apr_off_t_toa(scratch_pool, finfo2.size));
           }
       }
 #endif



Mime
View raw message