From a31236b1f8ad8d77a750af80285241f235d005cb Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Fri, 6 Mar 2026 13:30:14 +0000 Subject: util/nvmutil: comment regarding endianness Signed-off-by: Leah Rowe --- util/nvmutil/nvmutil.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index b735b351..203e4862 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -609,6 +609,11 @@ good_checksum(int partnum) return 0; } +/* + * GbE NVM files store 16-bit (2-byte) little-endian words. + * We must therefore swap the order when reading or writing. + */ + static uint16_t word(size_t pos16, int p) { -- cgit v1.2.1