From: Joel Rosdahl Date: Mon, 18 Jul 2011 10:09:23 +0000 (+0200) Subject: Rename format_size to format_human_readable_size X-Git-Tag: v3.2~208 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c5c683346ba30b2535bb93f917c9b4e36737417e;p=thirdparty%2Fccache.git Rename format_size to format_human_readable_size --- diff --git a/ccache.c b/ccache.c index d5b73b8e3..19a8d4afd 100644 --- a/ccache.c +++ b/ccache.c @@ -2090,7 +2090,7 @@ ccache_main_options(int argc, char *argv[]) if (v == 0) { printf("Unset cache size limit\n"); } else { - char *s = format_size(v); + char *s = format_human_readable_size(v); printf("Set cache size limit to %s\n", s); free(s); } diff --git a/ccache.h b/ccache.h index 9c415e6b8..d0f083387 100644 --- a/ccache.h +++ b/ccache.h @@ -128,7 +128,7 @@ const char *get_extension(const char *path); char *remove_extension(const char *path); size_t file_size(struct stat *st); int safe_create_wronly(const char *fname); -char *format_size(size_t v); +char *format_human_readable_size(size_t v); bool parse_size_with_suffix(const char *str, size_t *size); char *x_realpath(const char *path); char *gnu_getcwd(void); diff --git a/stats.c b/stats.c index 9ddcebe69..3fee391f3 100644 --- a/stats.c +++ b/stats.c @@ -91,7 +91,7 @@ static struct { static void display_size(size_t v) { - char *s = format_size(v); + char *s = format_human_readable_size(v); printf("%15s", s); free(s); } diff --git a/util.c b/util.c index 6f8b35f7f..313bd6ac1 100644 --- a/util.c +++ b/util.c @@ -817,7 +817,7 @@ safe_create_wronly(const char *fname) /* Format a size (in KiB) as a human-readable string. Caller frees. */ char * -format_size(size_t v) +format_human_readable_size(size_t v) { char *s; if (v >= 1024*1024) {