Thread (6 messages) 6 messages, 2 authors, 2021-08-22

Re: [PATCH] vsprintf and docs: Add X to %ph for upper case output

From: Andy Shevchenko <hidden>
Date: 2021-08-22 09:00:49
Also in: lkml

On Sun, Aug 22, 2021 at 11:57 AM Joe Perches [off-list ref] wrote:
On Sun, 2021-08-22 at 11:53 +0300, Andy Shevchenko wrote:
quoted
On Sun, Aug 22, 2021 at 11:45 AM Joe Perches [off-list ref] wrote:
quoted
On Sun, 2021-08-22 at 11:31 +0300, Andy Shevchenko wrote:
...
quoted
quoted
+       return snprintf(buf, 16 * 2 + 2, "%16phNX\n", sn);
quoted
+       return scnprintf(buffer, PAGE_SIZE, "%16phNX\n", unique_id);
I think you need to convert to sysfs_emit() in both cases.
First things first...
Yep. and to avoid ping-pong style, first here is converting to
sysfs_emit*() since it's already in the kernel.

-- 
With Best Regards,
Andy Shevchenko
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help