From 2f0c189da9ee803466bdd7707f0a8cc207259ee8 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Fri, 6 Mar 2026 16:46:01 +0000 Subject: util/nvmutil: more readable SIZE_nKB defines Signed-off-by: Leah Rowe --- util/nvmutil/nvmutil.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index f489448d..04d691d2 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -64,10 +64,11 @@ static void set_err(int); #define NVM_CHECKSUM_WORD 0x3F #define NVM_SIZE 128 -#define SIZE_4KB 0x1000 -#define SIZE_8KB 0x2000 -#define SIZE_16KB 0x4000 -#define SIZE_128KB 0x20000 +#define SIZE_1KB 1024 +#define SIZE_4KB (4 * SIZE_1KB) +#define SIZE_8KB (8 * SIZE_1KB) +#define SIZE_16KB (16 * SIZE_1KB) +#define SIZE_128KB (128 * SIZE_1KB) #define MAX_RETRY_READ 30 -- cgit v1.2.1