Messages in this thread | | | Subject | Re: [PATCH v7 4/5] nvmem: eeprom: at25: export FRAM serial num | From | Jiří Prchal <> | Date | Mon, 7 Jun 2021 16:47:44 +0200 |
| |
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
| |