From patchwork Wed Jan 30 23:15:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Kent X-Patchwork-Id: 10789369 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5500D1390 for ; Wed, 30 Jan 2019 23:15:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6C28C2FAFD for ; Wed, 30 Jan 2019 23:15:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 60AFF2FB09; Wed, 30 Jan 2019 23:15:54 +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 140E12FAFD for ; Wed, 30 Jan 2019 23:15:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727169AbfA3XPs (ORCPT ); Wed, 30 Jan 2019 18:15:48 -0500 Received: from icp-osb-irony-out4.external.iinet.net.au ([203.59.1.220]:26763 "EHLO icp-osb-irony-out4.external.iinet.net.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726198AbfA3XPs (ORCPT ); Wed, 30 Jan 2019 18:15:48 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2AKAADVL1Jc/zin0HYNVhsBAQEBAwEBAQcDAQEBgVEGAQEBCwEBgmmBKoQDiBqMRQaBEIlZiUuFDoF7KIRMAwKDKzQJDQEDAQEBAQEBAoEJTgEBBAsBhHknBFIoAQwCJgJJFhODI4F0q35xfDMaih2BC4FziVl4gQeBRIppglcCkGo5kTUJhy6LHAwCgi6IEQOHYgEtgnGaCoIOTS4KgycJjFGED2WCUYR8iDMBAQ X-IPAS-Result: A2AKAADVL1Jc/zin0HYNVhsBAQEBAwEBAQcDAQEBgVEGAQEBCwEBgmmBKoQDiBqMRQaBEIlZiUuFDoF7KIRMAwKDKzQJDQEDAQEBAQEBAoEJTgEBBAsBhHknBFIoAQwCJgJJFhODI4F0q35xfDMaih2BC4FziVl4gQeBRIppglcCkGo5kTUJhy6LHAwCgi6IEQOHYgEtgnGaCoIOTS4KgycJjFGED2WCUYR8iDMBAQ X-IronPort-AV: E=Sophos;i="5.56,542,1539619200"; d="scan'208";a="140645227" Received: from unknown (HELO [192.168.1.228]) ([118.208.167.56]) by icp-osb-irony-out4.iinet.net.au with ESMTP; 31 Jan 2019 07:15:29 +0800 Subject: [PATCH] autofs - use seq_puts() for simple strings in autofs_show_options() From: Ian Kent To: Andrew Morton Cc: autofs mailing list , Kernel Mailing List , linux-fsdevel Date: Thu, 31 Jan 2019 07:15:26 +0800 Message-ID: <154889012613.4863.12231175554744203482.stgit@pluto-themaw-net> User-Agent: StGit/unknown-version MIME-Version: 1.0 Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fix checkpatch.sh WARNING about the use of seq_printf() to print simple strings in autofs_show_options(), use seq_puts() in this case. Signed-off-by: Ian Kent --- fs/autofs/inode.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/fs/autofs/inode.c b/fs/autofs/inode.c index 8647ecaa89fc..80597b88718b 100644 --- a/fs/autofs/inode.c +++ b/fs/autofs/inode.c @@ -82,20 +82,20 @@ static int autofs_show_options(struct seq_file *m, struct dentry *root) seq_printf(m, ",maxproto=%d", sbi->max_proto); if (autofs_type_offset(sbi->type)) - seq_printf(m, ",offset"); + seq_puts(m, ",offset"); else if (autofs_type_direct(sbi->type)) - seq_printf(m, ",direct"); + seq_puts(m, ",direct"); else - seq_printf(m, ",indirect"); + seq_puts(m, ",indirect"); if (sbi->flags & AUTOFS_SBI_STRICTEXPIRE) - seq_printf(m, ",strictexpire"); + seq_puts(m, ",strictexpire"); if (sbi->flags & AUTOFS_SBI_IGNORE) - seq_printf(m, ",ignore"); + seq_puts(m, ",ignore"); #ifdef CONFIG_CHECKPOINT_RESTORE if (sbi->pipe) seq_printf(m, ",pipe_ino=%ld", file_inode(sbi->pipe)->i_ino); else - seq_printf(m, ",pipe_ino=-1"); + seq_puts(m, ",pipe_ino=-1"); #endif return 0; }