From patchwork Mon Jun 26 12:49:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Aur=C3=A9lien_Aptel?= X-Patchwork-Id: 9809557 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 426AA60329 for ; Mon, 26 Jun 2017 12:49:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0533027F9A for ; Mon, 26 Jun 2017 12:49:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ED45C27FB3; Mon, 26 Jun 2017 12:49:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7421F27F9A for ; Mon, 26 Jun 2017 12:49:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751475AbdFZMt0 (ORCPT ); Mon, 26 Jun 2017 08:49:26 -0400 Received: from smtp.nue.novell.com ([195.135.221.5]:37945 "EHLO smtp.nue.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751435AbdFZMtZ (ORCPT ); Mon, 26 Jun 2017 08:49:25 -0400 Received: from localhost (charybdis-ext.suse.de [195.135.221.2]) by smtp.nue.novell.com with ESMTP (TLS encrypted); Mon, 26 Jun 2017 14:49:24 +0200 From: Aurelien Aptel To: linux-cifs@vger.kernel.org Cc: smfrench@gmail.com, Aurelien Aptel Subject: [PATCH 1/1] CIFS: add int cast to silence warning Date: Mon, 26 Jun 2017 14:49:11 +0200 Message-Id: <20170626124911.28449-1-aaptel@suse.com> X-Mailer: git-send-email 2.12.3 Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The '*' field specifier expects an int and sizeof returns an unsigned long int but its always going to be a small positive value so casting is safe. Signed-off-by: Aurelien Aptel --- fs/cifs/smb2transport.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/cifs/smb2transport.c b/fs/cifs/smb2transport.c index 437d11711b3e..ad0492c682e7 100644 --- a/fs/cifs/smb2transport.c +++ b/fs/cifs/smb2transport.c @@ -349,7 +349,8 @@ generate_smb3signingkey(struct cifs_ses *ses, * print it as a long long. we dump it as we got it on the * wire. */ - cifs_dbg(VFS, "Session Id %*ph\n", sizeof(ses->Suid), &ses->Suid); + cifs_dbg(VFS, "Session Id %*ph\n", (int)sizeof(ses->Suid), + &ses->Suid); cifs_dbg(VFS, "Session Key %*ph\n", SMB2_NTLMV2_SESSKEY_SIZE, ses->auth_key.response); cifs_dbg(VFS, "Signing Key %*ph\n",