Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp13374458rwb; Sun, 27 Nov 2022 04:55:08 -0800 (PST) X-Google-Smtp-Source: AA0mqf6FKuDatBf/bsic5BK+t/pqwjaf6fbtvlhg3ru5BWzpwXavtIFbLbLK1lHkWBOb4ZouIq2Y X-Received: by 2002:a17:90a:df0e:b0:20b:22fb:2ef with SMTP id gp14-20020a17090adf0e00b0020b22fb02efmr56105757pjb.158.1669553708590; Sun, 27 Nov 2022 04:55:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669553708; cv=none; d=google.com; s=arc-20160816; b=HrpGr9ghvFh5iPjM8hULiyX3rjR9ImbuAhE7OtU00uYwmyX9/kdkpXNdLhBXUBWcSD 665HwMAcGvbhQ5dpdWqBqVkd131XMZg62GjO65i8kIyNP7l1pKEtvfWnW0yv7E3hl6Gt +aykzbDoK+8k8eqSizzr15O2R+4OLwR+sofWyzNNtKLNWBtXmvbFCZ1Ax7gIo7ez8a9X oNNjIbqgiqkWDbUtO8F9tzJaX3WSYgqzwdaqSWESqk/asTrXM4qs5IorrfQS2oPWGl3A AWwY+TY0QRY7zt7MclNkdwGw9hvXIGv8szp3uIVR9JQr38MC10vPmKnmyR3yrCkmvjjx aPLg== 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=V7VU7TFXe45+rlFrW8mkMq+abQUAt2jw3T+OaKAbrGQ=; b=hdLdf9fyHnoe14wp1H9/o7JeNfpZlXNByuccxRX2MykT6Jih1nxmXNhL68D02pHKaz 65pIjTHtrCPxIM1c2HPVDhkyqC0rcVHtVuqRhZiPR9kWkVVr3meRYpeLG8AREiJ8rmFS KHTBoqNmjdIybtg3adJSBmkRTRoeR1oSWfmJxmLPTsFd9lfLv0Jz1rsEvHMTZ3zpRqwB hCe4aow3OxDPZgBPwpqfMDMMGDHiGNKy+ryhltqXSdTr/rmf4t/DdsfA7XWvp0tKDnep ZjP0MB5kNf4RLUkhoLSFBWVYKW/CgXJFzcG8EriTUJFXghiVx/u+zTtDHdhZ3y2NzT1L BS0Q== 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 e17-20020a17090301d100b00189240585a8si2070198plh.292.2022.11.27.04.54.56; Sun, 27 Nov 2022 04:55:08 -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 S229580AbiK0Mfj (ORCPT + 86 others); Sun, 27 Nov 2022 07:35:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229498AbiK0Mfi (ORCPT ); Sun, 27 Nov 2022 07:35:38 -0500 Received: from jari.cn (unknown [218.92.28.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 015B5C76E; Sun, 27 Nov 2022 04:35:27 -0800 (PST) Received: by ajax-webmail-localhost.localdomain (Coremail) ; Sun, 27 Nov 2022 20:35:10 +0800 (GMT+08:00) X-Originating-IP: [182.148.15.36] Date: Sun, 27 Nov 2022 20:35:10 +0800 (GMT+08:00) X-CM-HeaderCharset: UTF-8 From: "KaiLong Wang" To: kartilak@cisco.com, sebaddel@cisco.com, jejb@linux.ibm.com, martin.petersen@oracle.com Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] scsi: snic: 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: <716c3cdc.1d2.184b9159597.Coremail.wangkailong@jari.cn> X-Coremail-Locale: zh_CN X-CM-TRANSID: AQAAfwD3C+J+WYNjWXIFAA--.129W X-CM-SenderInfo: 5zdqwypdlo00nj6mt2flof0/1tbiAQAJB2FEYx0EXwAGsJ 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 Rml4IHRoZSBmb2xsb3dpbmcgY29jY2ljaGVjayB3YXJuaW5nOgoKZHJpdmVycy9zY3NpL3NuaWMv c25pY19hdHRycy5jOjI2OjgtMTY6IFdBUk5JTkc6IHVzZSBzY25wcmludGYgb3IKc3ByaW50Zgpk cml2ZXJzL3Njc2kvc25pYy9zbmljX2F0dHJzLmM6MTY6OC0xNjogV0FSTklORzogdXNlIHNjbnBy aW50ZiBvcgpzcHJpbnRmCmRyaXZlcnMvc2NzaS9zbmljL3NuaWNfYXR0cnMuYzozNTo4LTE2OiBX QVJOSU5HOiB1c2Ugc2NucHJpbnRmIG9yCnNwcmludGY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