Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp13423839rwb; Sun, 27 Nov 2022 05:37:10 -0800 (PST) X-Google-Smtp-Source: AA0mqf42dK4hboIBQg4WUAfFfxH3w0cRZY2avspC5bkmi1mA5ASXIAdT5oCRmshKI/QuzBOJT4UK X-Received: by 2002:a17:906:fcd0:b0:7ad:b8c0:3057 with SMTP id qx16-20020a170906fcd000b007adb8c03057mr40151124ejb.440.1669556230445; Sun, 27 Nov 2022 05:37:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669556230; cv=none; d=google.com; s=arc-20160816; b=Rufd1GR+K4NtnG9Koq2sqgricUDDMJUkLEeUPr0xIgdNgTBi4V/Tk105VgeH4T3CqU yULRJBMil0KQnMoYTMhqlei5L+w8hrTt3InJxVOM7vgqf8oOEA35aDFtKQ9CtfWkNd+e h8w+F7BZwGq+otF5hqP7hFBEq4W4QtExwhK6Hv0CLr4Z8xlQtJcl4HbYyMg1Ga7TUCHg bSYeDRaG34/4snpL2FAVpnx7UmsgGVO7qZRsG7/jioElf02A57NhmcWgQvS50ikE9EMg OqlluFZgBx3ZHK8DuzMrXbdzRqOVOmGIgy53xJJ+FopiklYhRlB1Ix0nloouY6MoD1o9 D5zQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:mime-version :content-transfer-encoding:subject:cc:to:from:date; bh=452VT0d4flkoVc+VtKCdHQLhiK4sTvB602ykDsN379E=; b=pg+lPSzVW70XFn19OZ37HdH5fyNQMKPyc6qTJcxFgygmlZdc0AG1i9p5k11oOIvuQK fjiccSGm02Rpzhez1IUMe7sctDQ/F0CmP8NespS3v0s2t3wvalBaxcohaGcze/wN1KbP SYaNbR6KUhfjc8/0qKV7NUKb67o5oZqaUeZQ8ZJQz4YCy7ckNkUJ5xglSBe/oay9CEH5 dPpEd3OZaPZTY5piq0dhiU9RIYXlkFzmXjVUcpjSsPYDfAiviDv0GNF/9TDv2Et6c4jD hqmweoYS82EMi88fnlx8oDl94v99sh+QWvyhVBB12JRL8/rf9FWapGUmX2VeDevyr+fE Fd7A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hd7-20020a170907968700b007ae54733c69si9845085ejc.542.2022.11.27.05.36.49; Sun, 27 Nov 2022 05:37:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229629AbiK0Mo0 (ORCPT + 84 others); Sun, 27 Nov 2022 07:44:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229489AbiK0MoZ (ORCPT ); Sun, 27 Nov 2022 07:44:25 -0500 Received: from jari.cn (unknown [218.92.28.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D6335BCB7; Sun, 27 Nov 2022 04:44:23 -0800 (PST) Received: by ajax-webmail-localhost.localdomain (Coremail) ; Sun, 27 Nov 2022 20:44:13 +0800 (GMT+08:00) X-Originating-IP: [182.148.15.36] Date: Sun, 27 Nov 2022 20:44:13 +0800 (GMT+08:00) X-CM-HeaderCharset: UTF-8 From: "KaiLong Wang" To: mikecyr@linux.ibm.com, jejb@linux.ibm.com, martin.petersen@oracle.com Cc: linux-scsi@vger.kernel.org, target-devel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] scsi: ibmvscsi_tgt: convert sysfs snprintf to sysfs_emit X-Priority: 3 X-Mailer: Coremail Webmail Server Version XT6.0.1 build 20210329(c53f3fee) Copyright (c) 2002-2022 www.mailtech.cn mispb-4e503810-ca60-4ec8-a188-7102c18937cf-zhkzyfz.cn Content-Transfer-Encoding: base64 Content-Type: text/plain; charset=UTF-8 MIME-Version: 1.0 Message-ID: <483482fb.1d3.184b91dde72.Coremail.wangkailong@jari.cn> X-Coremail-Locale: zh_CN X-CM-TRANSID: AQAAfwCHj+CdW4NjZHIFAA--.115W X-CM-SenderInfo: 5zdqwypdlo00nj6mt2flof0/1tbiAQADB2FEYx0G1gACsM X-Coremail-Antispam: 1Ur529EdanIXcx71UUUUU7IcSsGvfJ3iIAIbVAYjsxI4VWxJw CS07vEb4IE77IF4wCS07vE1I0E4x80FVAKz4kxMIAIbVAFxVCaYxvI4VCIwcAKzIAtYxBI daVFxhVjvjDU= X-Spam-Status: No, score=2.2 required=5.0 tests=BAYES_00,RCVD_IN_PBL,RDNS_NONE, T_SPF_HELO_PERMERROR,T_SPF_PERMERROR,XPRIO autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Rml4IHRoZSBmb2xsb3dpbmcgY29jY2ljaGVjayB3YXJuaW5nOgoKZHJpdmVycy9zY3NpL2libXZz Y3NpX3RndC9pYm12c2NzaV90Z3QuYzozNjI1OjgtMTY6IFdBUk5JTkc6IHVzZQpzY25wcmludGYg b3Igc3ByaW50Zgpkcml2ZXJzL3Njc2kvaWJtdnNjc2lfdGd0L2libXZzY3NpX3RndC5jOjM2MTk6 OC0xNjogV0FSTklORzogdXNlCnNjbnByaW50ZiBvciBzcHJpbnRmCmRyaXZlcnMvc2NzaS9pYm12 c2NzaV90Z3QvaWJtdnNjc2lfdGd0LmM6MzYzMzo4LTE2OiB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