Skip to content

Commit

Permalink
Fix printf format error
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Schwab committed Dec 17, 2014
1 parent 3eb5d2f commit bdf079d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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>.
Expand Down
4 changes: 2 additions & 2 deletions nscd/mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bdf079d

Please sign in to comment.