summaryrefslogtreecommitdiff
path: root/libunwindstack/tests/MemoryFileTest.cpp
diff options
context:
space:
mode:
authorJinguang Dong <dongjinguang@huawei.com>2017-06-01 19:42:22 +0800
committerJinguang Dong <dongjinguang@huawei.com>2017-06-01 19:42:22 +0800
commitf7d1014795fd0993c16ab44d45981b386d681424 (patch)
tree44b2daa58b694077a9fe1cb1418ac7b413bb8caf /libunwindstack/tests/MemoryFileTest.cpp
parent844940d751be6cf6078c9e816fc09356034c1b26 (diff)
fs_mgr: Fix ZRAM error when ZRAM disk size beyond (2^31-1) bytes
Because the zram_size type is unsigned int.so if ZRAM size great than 2^31 -1, zram_fp will receive a negtive integer, while the ZRAM driver only accept natural number.We need to use printf formatting %u instand of %d. Test: 1. Config the zramdisk size 2348810240 and build a ramdisk 2. Reflash device and check below command: $adb shell dumpsys meminfo $ adb shell cat /sys/block/zram0/disksize ZRAM info display will be abnormal 3. Config the zramdisk size 2348810240 and apply with this patch. 4. Retest to step 2 and the ZRAM info will be ok. Change-Id: I473de33fbd0b66cf13eac3172684e9fef11b6ef0
Diffstat (limited to 'libunwindstack/tests/MemoryFileTest.cpp')
0 files changed, 0 insertions, 0 deletions