file system: storage: Fix the memory size output

In fat_fs example, if we choose a large size SD card to connect with,
the result of memory size calculation coule be wrong due to the missing
brace for manipulating operator priority.

Fixes #26266.

Signed-off-by: Jui-Chou Chung <jui-chou.chung@nordicsemi.no>
This commit is contained in:
Jui-Chou Chung 2020-06-18 17:33:23 +08:00 committed by Anas Nashif
parent 03df4d3fb0
commit 959e4644fd

View file

@ -59,7 +59,7 @@ void main(void)
printk("Sector size %u\n", block_size);
memory_size_mb = (uint64_t)block_count * block_size;
printk("Memory Size(MB) %u\n", (uint32_t)memory_size_mb>>20);
printk("Memory Size(MB) %u\n", (uint32_t)(memory_size_mb>>20));
} while (0);
mp.mnt_point = disk_mount_pt;