[PATCH] ls: align file size correctly on non-ARM 64-bit platforms

Ahmad Fatoum a.fatoum at pengutronix.de
Mon Sep 14 13:17:08 EDT 2020


CONFIG_CPU_64 is ARM-specific. Use the generic CONFIG_64BIT instead
for aligning the file size.

Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
Cc: Andrey Smirnov <andrew.smirnov at gmail.com>
---
 commands/ls.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/commands/ls.c b/commands/ls.c
index 59163f678d51..bedf2e1c4288 100644
--- a/commands/ls.c
+++ b/commands/ls.c
@@ -15,7 +15,7 @@
 /*
  * SIZELEN = strlen(itoa(MAX_LFS_FILESIZE)) + 1;
  */
-#ifdef CONFIG_CPU_64
+#ifdef CONFIG_64BIT
 #define SIZELEN		20
 #else
 #define SIZELEN		14
-- 
2.28.0




More information about the barebox mailing list