summaryrefslogtreecommitdiffstats
path: root/apps/plugins/properties.c
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-08-28 22:16:27 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-08-28 22:16:27 +0000
commitf739a685d64604403b6351c18420d12eac2a1d80 (patch)
tree71ab4bb4ded39cb13c41d31185f6522c9e25939f /apps/plugins/properties.c
parente02e1db528088889e24d11eff67d38b71eb4fbc6 (diff)
downloadrockbox-f739a685d64604403b6351c18420d12eac2a1d80.tar.gz
rockbox-f739a685d64604403b6351c18420d12eac2a1d80.tar.bz2
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/plugins/properties.c')
-rw-r--r--apps/plugins/properties.c6
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)
rb->lcd_putsf(0,3,"Directories: %d", dps->dc);
rb->lcd_putsf(0,4,"Files: %d", dps->fc);
log = human_size_log(dps->bc);
- rb->lcd_putsf(0,5,"Size: %lld %cB", dps->bc >> (10*log),
+ rb->lcd_putsf(0,5,"Size: %ld %cB", (long) (dps->bc >> (10*log)),
human_size_prefix[log]);
rb->lcd_update();
@@ -216,8 +216,8 @@ static bool dir_properties(char* selected_file)
rb->snprintf(str_dircount, sizeof str_dircount, "Subdirs: %d", dps.dc);
rb->snprintf(str_filecount, sizeof str_filecount, "Files: %d", dps.fc);
log = human_size_log(dps.bc);
- rb->snprintf(str_size, sizeof str_size, "Size: %lld %cB",
- dps.bc >> (log*10), human_size_prefix[log]);
+ rb->snprintf(str_size, sizeof str_size, "Size: %ld %cB",
+ (long) (dps.bc >> (log*10)), human_size_prefix[log]);
num_properties = 4;
return true;
}