From: Andreas Schwab Date: Wed, 17 Dec 2014 12:04:07 +0000 (+0100) Subject: Fix printf format error X-Git-Tag: glibc-2.21~209 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bdf079da369ad5685c0432b2f41a5aaf1ec990e7;p=thirdparty%2Fglibc.git Fix printf format error --- diff --git a/ChangeLog b/ChangeLog index 4be48d00b3d..61bbbc941dd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2014-12-17 Andreas Schwab + + * nscd/mem.c (gc): Add size_t cast to match printf format. + 2014-12-16 Roland McGrath * sysdeps/gnu/unwind-resume.c: #include . diff --git a/nscd/mem.c b/nscd/mem.c index b4090fb6a59..b04c7fa9621 100644 --- a/nscd/mem.c +++ b/nscd/mem.c @@ -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