summaryrefslogtreecommitdiffstats
path: root/lib/display_options.c
Commit message (Collapse)AuthorAgeFilesLines
* lib: declared buffer is too small to hold stringRenaud Barbier2016-04-121-1/+1
| | | | | | | | | | Displaying an unsigned 64-bit integer can be represented by up to 20 characters. The 20 bytes buffer reserved to store the formatted string "%llu Bytes" is to small: (20 + 6) = 26. Hence, a bigger buffer is reserved to hold this string. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* treewide: fix signedness mixups in printf format specifiersLucas Stach2014-04-231-1/+1
| | | | | | | | | This most likely doesn't fix any real bugs, but it's the right thing to do and reduces the noise level with static checkers. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* lib: update size_human_readable to latest versionWolfram Sang2012-12-191-16/+31
| | | | | | | | Copy over the latest version from u-boot which handles bigger sizes now and does arithmetic with shifts instead of divisions. Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Treewide: remove address of the Free Software FoundationSascha Hauer2012-09-171-4/+0
| | | | | | | The FSF address has changed in the past. Instead of updating it each time the address changes, just drop it completely treewide. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* export symbolsSascha Hauer2007-10-071-1/+1
|
* print_size() -> size_human_readable()Sascha Hauer2007-09-261-6/+11
| | | | return a pointer to a human readable string rather than printingit directly
* svn_rev_639Sascha Hauer2007-07-051-0/+55