lkml.org 
[lkml]   [2021]   [Jun]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v7 4/5] nvmem: eeprom: at25: export FRAM serial num
From
Date


On 07. 06. 21 14:36, Greg Kroah-Hartman wrote:
> On Mon, Jun 07, 2021 at 02:26:39PM +0200, Jiri Prchal wrote:
>> + return sysfs_emit(buf, "%016llx\n", *(unsigned long long *)at25->sernum);
>
> That's a horrid hack, why not use the %*phN modifier?

Prints as little endian, is that OK?

Jiri

\
 
 \ /
  Last update: 2021-06-07 16:48    [W:0.304 / U:0.688 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site