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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx>
---
Cc: Andrey Smirnov <andrew.smirnov@xxxxxxxxx>
---
 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


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux