summaryrefslogtreecommitdiff
path: root/.checkpatch.conf
diff options
context:
space:
mode:
authorMiquel Raynal <miquel.raynal@bootlin.com>2018-09-06 09:08:43 +0200
committerJagan Teki <jagan@amarulasolutions.com>2018-09-20 20:11:01 +0530
commita353e6aa8ec8f0aa101cc7e9543fe7843ddc6d98 (patch)
treebb911ce09452ffdcb55da32756fa237db9e54eea /.checkpatch.conf
parent2b9ace5527d33539844fa831e12ad8357a25246e (diff)
lib: strto: parse all lowercase metric prefixes in ustrtoul[l]
Both ustrtoul and ustrtoull interpret 1k but not 1m or 1g. Even if the SI symbols for Mega and Giga are 'M' and 'G', certain entries of eg. mtdparts also use (wrongly) the metric prefix 'm' and 'g'. I do not see how parsing lowercase prefixes could break anything, so parse them like their uppercase counterpart. Also, even though kiB is not equal to kB in general, lets not change U-Boot behavior and always use kiB and kB (same applies for MiB vs. MB and GiB vs. GB) as a representation for 1024 instead of 1000. Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Reviewed-by: Stefan Roese <sr@denx.de>
Diffstat (limited to '.checkpatch.conf')
0 files changed, 0 insertions, 0 deletions