+static const char TRext[] = "\0\0k\0M";
+
+static void print_bytes_scaled(unsigned long long ull, const char *end)
+{
+ unsigned long long int_part;
+ unsigned long frac_part;
+ const char *ext;
+ int i;
+
+ frac_part = 0;
+ ext = TRext;
+ int_part = ull;
+ for (i=0 ; i<2 ; i++) {
+ if (int_part >= 1024) {
+ frac_part = ((int_part % 1024) * 10) / 1024;
+ int_part /= 1024;
+ ext += 2; /* Kb, Mb */
+ }
+ }
+
+ printf("X bytes:%Lu (%Lu.%lu %sb)%s", ull, int_part, frac_part, ext, end);
+}
+
+static void ife_print(struct interface *ptr)