summaryrefslogtreecommitdiffstats
path: root/partition.cpp
diff options
context:
space:
mode:
authorDees Troy <dees_troy@teamw.in>2019-03-21 19:17:28 +0100
committerDees Troy <dees_troy@teamw.in>2019-04-03 05:23:34 +0200
commit9a4d7403d94ff8fafd2638dbebb20ac506ee0e12 (patch)
treeaa4319f51109bea58afe1bbe7ee1e4829e8cdff8 /partition.cpp
parentAB Cache dir: If device doesn't have /data/cache for FBE, we should (diff)
downloadandroid_bootable_recovery-9a4d7403d94ff8fafd2638dbebb20ac506ee0e12.tar
android_bootable_recovery-9a4d7403d94ff8fafd2638dbebb20ac506ee0e12.tar.gz
android_bootable_recovery-9a4d7403d94ff8fafd2638dbebb20ac506ee0e12.tar.bz2
android_bootable_recovery-9a4d7403d94ff8fafd2638dbebb20ac506ee0e12.tar.lz
android_bootable_recovery-9a4d7403d94ff8fafd2638dbebb20ac506ee0e12.tar.xz
android_bootable_recovery-9a4d7403d94ff8fafd2638dbebb20ac506ee0e12.tar.zst
android_bootable_recovery-9a4d7403d94ff8fafd2638dbebb20ac506ee0e12.zip
Diffstat (limited to 'partition.cpp')
-rw-r--r--partition.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/partition.cpp b/partition.cpp
index c278fa9fe..edf344f5c 100644
--- a/partition.cpp
+++ b/partition.cpp
@@ -2061,7 +2061,11 @@ bool TWPartition::Wipe_EXTFS(string File_System) {
if (NeedPreserveFooter)
Length < 0 ? dev_sz += Length : dev_sz -= CRYPT_FOOTER_OFFSET;
- string size_str = to_string(dev_sz / 4096);
+ char dout[16];
+ sprintf(dout, "%llu", dev_sz / 4096);
+
+ //string size_str =to_string(dev_sz / 4096);
+ string size_str = dout;
string Command;
gui_msg(Msg("formatting_using=Formatting {1} using {2}...")(Display_Name)("mke2fs"));