shell: remove deprecated print_size() function
This commit is contained in:
parent
8f680b9d5b
commit
316e3a13d2
1 changed files with 0 additions and 19 deletions
|
@ -78,25 +78,6 @@ static void print_hex_ascii(const char *buf, size_t len)
|
|||
}
|
||||
}
|
||||
|
||||
static void print_size(size_t size)
|
||||
{
|
||||
if (size == 0) {
|
||||
printf("0");
|
||||
#if defined(TIB)
|
||||
} else if (size % TIB == 0) {
|
||||
printf("%" PRSZu " TiB", size / TIB);
|
||||
#endif
|
||||
} else if (size % GIB == 0) {
|
||||
printf("%" PRSZu " GiB", size / GIB);
|
||||
} else if (size % MIB == 0) {
|
||||
printf("%" PRSZu " MiB", size / MIB);
|
||||
} else if (size % KIB == 0) {
|
||||
printf("%" PRSZu " KiB", size / KIB);
|
||||
} else {
|
||||
printf("%" PRSZu " B", size);
|
||||
}
|
||||
}
|
||||
|
||||
static void do_flash_probe(const char *s)
|
||||
{
|
||||
(void)s;
|
||||
|
|
Loading…
Add table
Reference in a new issue