shell: remove deprecated print_size() function

tags/0.1.0
S.J.R. van Schaik 7 years ago
parent 8f680b9d5b
commit 316e3a13d2
  1. 19
      source/shell/flash.c

@ -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…
Cancel
Save