From 75ea8ab1756b71c766769b519355e9f6c3611a69 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Wed, 4 Mar 2026 01:32:34 +0000 Subject: util/nvmutil: comment regarding memcpy endianness Signed-off-by: Leah Rowe --- util/nvmutil/nvmutil.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'util') diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index 71fe7123..f1e2c6f7 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -608,6 +608,13 @@ good_checksum(int partnum) return 0; } +/* + * NOTE: memcpy is a bit sticky with host endianness, + * but we currently use it only when swap has + * been handled. just be careful about when the + * swap() function is called. + */ + static uint16_t word(int pos16, int p) { -- cgit v1.2.1