summaryrefslogtreecommitdiffstats
path: root/src/dir.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2011-04-21 19:37:26 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2011-04-21 19:37:26 +0200
commit23484938138c2ea5aef3fb773f185862f0256ce8 (patch)
treecc7f42701434b924dc257b2712530bc60aea4556 /src/dir.c
parentf6e46f431db24343684cb9ce3e4feb4fcb71c292 (diff)
Reserve 9 digits instead of 7 to display file size in directory listing
Diffstat (limited to 'src/dir.c')
-rw-r--r--src/dir.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dir.c b/src/dir.c
index fc02082..25767de 100644
--- a/src/dir.c
+++ b/src/dir.c
@@ -182,7 +182,7 @@ int dir_aff_log(const dir_data_t *dir_data, const file_data_t*dir_list)
log_info("X");
else
log_info(" ");
- log_info("%7lu %s %5u %5u %7llu %s ",
+ log_info("%7lu %s %5u %5u %9llu %s ",
(unsigned long int)current_file->stat.st_ino,
str,
(unsigned int)current_file->stat.st_uid,
@@ -239,9 +239,9 @@ int log_list_file(const disk_t *disk, const partition_t *partition, const dir_da
}
mode_string(current_file->stat.st_mode,str);
log_info("%7lu ",(unsigned long int)current_file->stat.st_ino);
- log_info("%s %5u %5u ",
+ log_info("%s %5u %5u ",
str, (unsigned int)current_file->stat.st_uid, (unsigned int)current_file->stat.st_gid);
- log_info("%7llu", (long long unsigned int)current_file->stat.st_size);
+ log_info("%9llu", (long long unsigned int)current_file->stat.st_size);
log_info(" %s %s\n", datestr, current_file->name);
}
return test_date;