From: Volker Lendecke Date: Mon, 3 Jun 2019 19:31:26 +0000 (+0200) Subject: smbd: Avoid casts X-Git-Tag: ldb-2.0.5~360 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d8c75ec734f0b4be0ab5d8a1b8f69afdc09ef7ba;p=thirdparty%2Fsamba.git smbd: Avoid casts Signed-off-by: Volker Lendecke Reviewed-by: Stefan Metzmacher --- diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index c6bee38a41b..8c9d5b2cab6 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -3810,10 +3810,13 @@ void reply_lockread(struct smb_request *req) maxtoread = xconn->smb1.sessions.max_send - (smb_size + 5*2 + 3); if (numtoread > maxtoread) { - DEBUG(0,("reply_lockread: requested read size (%u) is greater than maximum allowed (%u/%u). \ -Returning short read of maximum allowed for compatibility with Windows 2000.\n", - (unsigned int)numtoread, (unsigned int)maxtoread, - (unsigned int)xconn->smb1.sessions.max_send)); + DBG_WARNING("requested read size (%zu) is greater than " + "maximum allowed (%zu/%d). " + "Returning short read of maximum allowed for " + "compatibility with Windows 2000.\n", + numtoread, + maxtoread, + xconn->smb1.sessions.max_send); numtoread = maxtoread; }