b43-dev.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: "Zhijian Li (Fujitsu)" <lizhijian@fujitsu.com>
To: "Michael Büsch" <m@bues.ch>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	Larry Finger <Larry.Finger@lwfinger.net>,
	Kalle Valo <kvalo@kernel.org>,
	"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
	"b43-dev@lists.infradead.org" <b43-dev@lists.infradead.org>
Subject: Re: [PATCH 2/3] net: b43: Convert sprintf/snprintf to sysfs_emit
Date: Fri, 15 Mar 2024 01:16:07 +0000	[thread overview]
Message-ID: <191ee62c-ab5e-498c-86d1-951771c9834f@fujitsu.com> (raw)
In-Reply-To: <20240314193215.74aac927@barney>



On 15/03/2024 02:32, Michael Büsch wrote:
> On Thu, 14 Mar 2024 17:48:22 +0800
> Li Zhijian <lizhijian@fujitsu.com> wrote:
> 
>>   	case B43legacy_INTERFMODE_NONE:
>> -		count = snprintf(buf, PAGE_SIZE, "0 (No Interference"
>> -				 " Mitigation)\n");
>> +		count = sysfs_emit(buf, "0 (No Interference" " Mitigation)\n");
>>   		break;
> 
>>   	if (wldev->short_preamble)
>> -		count = snprintf(buf, PAGE_SIZE, "1 (Short Preamble"
>> -				 " enabled)\n");
>> +		count = sysfs_emit(buf, "1 (Short Preamble" " enabled)\n");
>>   	else
>> -		count = snprintf(buf, PAGE_SIZE, "0 (Short Preamble"
>> -				 " disabled)\n");
>> +		count = sysfs_emit(buf, "0 (Short Preamble" " disabled)\n");
>>   
> 
> Please either leave the line break in place, or remove the string continuation.

Good catch, i will update it.


Thanks
Zhijian

> 
> 
> 
_______________________________________________
b43-dev mailing list
b43-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/b43-dev

      reply	other threads:[~2024-03-15  1:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20240314094823.1324898-1-lizhijian@fujitsu.com>
2024-03-14  9:48 ` [PATCH 2/3] net: b43: Convert sprintf/snprintf to sysfs_emit Li Zhijian
2024-03-14 18:08   ` Larry Finger
2024-03-14 18:32   ` Michael Büsch
2024-03-15  1:16     ` Zhijian Li (Fujitsu) [this message]

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=191ee62c-ab5e-498c-86d1-951771c9834f@fujitsu.com \
    --to=lizhijian@fujitsu.com \
    --cc=Larry.Finger@lwfinger.net \
    --cc=b43-dev@lists.infradead.org \
    --cc=kvalo@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=m@bues.ch \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).