All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Martin K. Petersen" <martin.petersen@oracle.com>
To: Xuezhi Zhang <zhangxuezhi1@coolpad.com>
Cc: jejb@linux.ibm.com, martin.petersen@oracle.com,
	linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] scsi: pmcraid: convert sysfs snprintf to sysfs_emit
Date: Thu, 28 Apr 2022 11:22:31 -0400	[thread overview]
Message-ID: <yq14k2djkrt.fsf@ca-mkp.ca.oracle.com> (raw)
In-Reply-To: <20220428070245.255827-1-zhangxuezhi1@coolpad.com> (Xuezhi Zhang's message of "Thu, 28 Apr 2022 07:02:45 +0000")


Xuezhi,

> @@ -3554,8 +3554,7 @@ static ssize_t pmcraid_show_drv_version(
>  	char *buf
>  )
>  {
> -	return snprintf(buf, PAGE_SIZE, "version: %s\n",
> -			PMCRAID_DRIVER_VERSION);
> +	return sysfs_emt(buf, "version: %s\n", PMCRAID_DRIVER_VERSION);
               ^^^^^^^^^

-- 
Martin K. Petersen	Oracle Linux Engineering

  reply	other threads:[~2022-04-28 15:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-28  7:02 [PATCH] scsi: pmcraid: convert sysfs snprintf to sysfs_emit Xuezhi Zhang
2022-04-28 15:22 ` Martin K. Petersen [this message]
2022-04-29  3:42 ` Bart Van Assche

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=yq14k2djkrt.fsf@ca-mkp.ca.oracle.com \
    --to=martin.petersen@oracle.com \
    --cc=jejb@linux.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=zhangxuezhi1@coolpad.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.