From patchwork Wed Jun 27 17:12:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Dickson X-Patchwork-Id: 10492247 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 D2C42601A0 for ; Wed, 27 Jun 2018 17:13:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E872820881 for ; Wed, 27 Jun 2018 17:13:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DC64F2985E; Wed, 27 Jun 2018 17:13:23 +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=-7.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, 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 81B5F20881 for ; Wed, 27 Jun 2018 17:13:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966077AbeF0RM7 (ORCPT ); Wed, 27 Jun 2018 13:12:59 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:38488 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S966053AbeF0RMx (ORCPT ); Wed, 27 Jun 2018 13:12:53 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 270A98AA1A for ; Wed, 27 Jun 2018 17:12:53 +0000 (UTC) Received: from steved.boston.devel.redhat.com (steved.boston.devel.redhat.com [10.19.60.47]) by smtp.corp.redhat.com (Postfix) with ESMTP id 11A922026D5B for ; Wed, 27 Jun 2018 17:12:53 +0000 (UTC) From: Steve Dickson To: Linux NFS Mailing list Subject: [PATCH] Revert "gssd.c: Remomved a couple of warning errors" Date: Wed, 27 Jun 2018 13:12:52 -0400 Message-Id: <20180627171252.18145-1-steved@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Wed, 27 Jun 2018 17:12:53 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Wed, 27 Jun 2018 17:12:53 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'steved@redhat.com' RCPT:'' Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This reverts commit 98118f5e382cdeb1acf25370768d5dfdc254ba5d. Added back the 'm' character which cause memory to be allocated for the string convertions. Signed-off-by: Steve Dickson --- utils/gssd/gssd.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/utils/gssd/gssd.c b/utils/gssd/gssd.c index 7b21ee2..2c14e5f 100644 --- a/utils/gssd/gssd.c +++ b/utils/gssd/gssd.c @@ -279,16 +279,16 @@ gssd_read_service_info(int dirfd, struct clnt_info *clp) * (commit bf19aacecbeebccb2c3d150a8bd9416b7dba81fe) */ numfields = fscanf(info, - "RPC server: %s\n" - "service: %s (%d) version %d\n" - "address: %s\n" - "protocol: %s\n" - "port: %s\n", - (char *)&server, - (char *)&service, &program, &version, - (char *)&address, - (char *)&protoname, - (char *)&port); + "RPC server: %ms\n" + "service: %ms (%d) version %d\n" + "address: %ms\n" + "protocol: %ms\n" + "port: %ms\n", + &server, + &service, &program, &version, + &address, + &protoname, + &port); switch (numfields) {