diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2010-08-28 22:16:27 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2010-08-28 22:16:27 +0000 |
commit | f739a685d64604403b6351c18420d12eac2a1d80 (patch) | |
tree | 71ab4bb4ded39cb13c41d31185f6522c9e25939f /apps | |
parent | e02e1db528088889e24d11eff67d38b71eb4fbc6 (diff) | |
download | rockbox-f739a685d64604403b6351c18420d12eac2a1d80.tar.gz rockbox-f739a685d64604403b6351c18420d12eac2a1d80.zip |
Fix r27923: folder size displayed "lld" in properties
Our printf format doesn't support "ll", restore the cast to long
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27931 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugins/properties.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugins/properties.c b/apps/plugins/properties.c index b8a982e908..d6692bc893 100644 --- a/apps/plugins/properties.c +++ b/apps/plugins/properties.c | |||
@@ -178,7 +178,7 @@ static bool _dir_properties(DPS* dps) | |||
178 | rb->lcd_putsf(0,3,"Directories: %d", dps->dc); | 178 | rb->lcd_putsf(0,3,"Directories: %d", dps->dc); |
179 | rb->lcd_putsf(0,4,"Files: %d", dps->fc); | 179 | rb->lcd_putsf(0,4,"Files: %d", dps->fc); |
180 | log = human_size_log(dps->bc); | 180 | log = human_size_log(dps->bc); |
181 | rb->lcd_putsf(0,5,"Size: %lld %cB", dps->bc >> (10*log), | 181 | rb->lcd_putsf(0,5,"Size: %ld %cB", (long) (dps->bc >> (10*log)), |
182 | human_size_prefix[log]); | 182 | human_size_prefix[log]); |
183 | rb->lcd_update(); | 183 | rb->lcd_update(); |
184 | 184 | ||
@@ -216,8 +216,8 @@ static bool dir_properties(char* selected_file) | |||
216 | rb->snprintf(str_dircount, sizeof str_dircount, "Subdirs: %d", dps.dc); | 216 | rb->snprintf(str_dircount, sizeof str_dircount, "Subdirs: %d", dps.dc); |
217 | rb->snprintf(str_filecount, sizeof str_filecount, "Files: %d", dps.fc); | 217 | rb->snprintf(str_filecount, sizeof str_filecount, "Files: %d", dps.fc); |
218 | log = human_size_log(dps.bc); | 218 | log = human_size_log(dps.bc); |
219 | rb->snprintf(str_size, sizeof str_size, "Size: %lld %cB", | 219 | rb->snprintf(str_size, sizeof str_size, "Size: %ld %cB", |
220 | dps.bc >> (log*10), human_size_prefix[log]); | 220 | (long) (dps.bc >> (log*10)), human_size_prefix[log]); |
221 | num_properties = 4; | 221 | num_properties = 4; |
222 | return true; | 222 | return true; |
223 | } | 223 | } |