This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix printf format error


This was failing on s390.  Installed as obvious.

Andreas.

	* nscd/mem.c (gc): Add size_t cast to match printf format.
---
 nscd/mem.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/nscd/mem.c b/nscd/mem.c
index b4090fb..b04c7fa 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
-- 
2.2.0

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]