]> sourceware.org Git - glibc.git/commitdiff
Fix printf format error
authorAndreas Schwab <schwab@suse.de>
Wed, 17 Dec 2014 12:04:07 +0000 (13:04 +0100)
committerAndreas Schwab <schwab@suse.de>
Wed, 17 Dec 2014 14:23:48 +0000 (15:23 +0100)
ChangeLog
nscd/mem.c

index 4be48d00b3d0dd9534bb65365409a4f11a93d999..61bbbc941dd077a2d49bbc36bdc5f22c3425b58b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2014-12-17  Andreas Schwab  <schwab@suse.de>
+
+       * nscd/mem.c (gc): Add size_t cast to match printf format.
+
 2014-12-16  Roland McGrath  <roland@hack.frob.com>
 
        * sysdeps/gnu/unwind-resume.c: #include <sysdep.h>.
index b4090fb6a59856a729b35b2fdfb8cc31ce213381..b04c7fa962133902f29a74fb0754ee262db7aa50 100644 (file)
@@ -423,8 +423,8 @@ gc (struct database_dyn *db)
 
       if (__glibc_unlikely (debug_level >= 3))
        dbg_log (_("freed %zu bytes in %s cache"),
-                db->head->first_free
-                - ((char *) moves->to + moves->size - db->data),
+                (size_t) (db->head->first_free
+                          - ((char *) moves->to + moves->size - db->data)),
                 dbnames[db - dbs]);
 
       /* The byte past the end of the last copied block is the next
This page took 0.124437 seconds and 5 git commands to generate.