Message ID | 20200213221332.2228810-1-patrick.oppenlander@gmail.com |
---|---|
State | New |
Headers | show |
Series | mmc-utils: Fix scaling of cache size | expand |
diff --git a/mmc_cmds.c b/mmc_cmds.c index fb37189..a1b1d75 100644 --- a/mmc_cmds.c +++ b/mmc_cmds.c @@ -1419,8 +1419,8 @@ int do_read_extcsd(int nargs, char **argv) printf("Power off notification [POWER_OFF_LONG_TIME: 0x%02x]\n", ext_csd[247]); printf("Cache Size [CACHE_SIZE] is %d KiB\n", - ext_csd[249] << 0 | (ext_csd[250] << 8) | - (ext_csd[251] << 16) | (ext_csd[252] << 24)); + (ext_csd[249] << 0 | (ext_csd[250] << 8) | + (ext_csd[251] << 16) | (ext_csd[252] << 24)) / 8); } /* A441: Reserved [501:247]