aboutsummaryrefslogtreecommitdiff
path: root/toys/posix/ls.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2015-03-01 16:08:51 -0600
committerRob Landley <rob@landley.net>2015-03-01 16:08:51 -0600
commit30c36d87280f3c45db157056b94ff67922f03fbf (patch)
tree21cc255a066705e8b0166ee6491376aff527e976 /toys/posix/ls.c
parent70a84a356b1c56743618362867b9300007d11998 (diff)
downloadtoybox-30c36d87280f3c45db157056b94ff67922f03fbf.tar.gz
Patches from Elliott Hughes to fix various printf() format strings.
(Don't specify the space flag when it's the default behavior. The ifconfig stuff was actual bugs.)
Diffstat (limited to 'toys/posix/ls.c')
-rw-r--r--toys/posix/ls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/toys/posix/ls.c b/toys/posix/ls.c
index d1a26ee1..a9241379 100644
--- a/toys/posix/ls.c
+++ b/toys/posix/ls.c
@@ -375,8 +375,8 @@ static void listfiles(int dirfd, struct dirtree *indir)
}
width += *len;
- if (flags & FLAG_i) xprintf("% *lu ", len[1], (unsigned long)st->st_ino);
- if (flags & FLAG_s) xprintf("% *lu ", len[6], (unsigned long)st->st_blocks);
+ if (flags & FLAG_i) xprintf("%*lu ", len[1], (unsigned long)st->st_ino);
+ if (flags & FLAG_s) xprintf("%*lu ", len[6], (unsigned long)st->st_blocks);
if (flags & (FLAG_l|FLAG_o|FLAG_n|FLAG_g)) {
struct tm *tm;