From aae8d892db9a0d305d144bf56a98d656c97eee20 Mon Sep 17 00:00:00 2001 From: Marc Kleine-Budde Date: Mon, 12 Nov 2007 12:01:18 +0100 Subject: use unsigned for filesize in ls Signed-off-by: Marc Kleine-Budde --- commands/ls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commands') diff --git a/commands/ls.c b/commands/ls.c index 6b88688426..23638d1378 100644 --- a/commands/ls.c +++ b/commands/ls.c @@ -34,7 +34,7 @@ static void ls_one(const char *path, struct stat *s) unsigned long namelen = strlen(path); mkmodestr(s->st_mode, modestr); - printf("%s %8d %*.*s\n",modestr, s->st_size, namelen, namelen, path); + printf("%s %8u %*.*s\n", modestr, s->st_size, namelen, namelen, path); } int ls(const char *path, ulong flags) -- cgit v1.2.3 From 9d27950d06d6d4a1bac50389589f8b72de648c90 Mon Sep 17 00:00:00 2001 From: Marc Kleine-Budde Date: Mon, 12 Nov 2007 14:36:52 +0100 Subject: use 10 digits for filesize in ls Signed-off-by: Marc Kleine-Budde --- commands/ls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commands') diff --git a/commands/ls.c b/commands/ls.c index 23638d1378..276b5e2893 100644 --- a/commands/ls.c +++ b/commands/ls.c @@ -34,7 +34,7 @@ static void ls_one(const char *path, struct stat *s) unsigned long namelen = strlen(path); mkmodestr(s->st_mode, modestr); - printf("%s %8u %*.*s\n", modestr, s->st_size, namelen, namelen, path); + printf("%s %10u %*.*s\n", modestr, s->st_size, namelen, namelen, path); } int ls(const char *path, ulong flags) -- cgit v1.2.3