Revision 42a0c054 nest/rt-attr.c

View differences:

nest/rt-attr.c
465 465
    }
466 466
}
467 467

  
468
static inline void
469
ea_show_ec_set(struct cli *c, struct adata *ad, byte *pos, byte *buf, byte *end)
470
{
471
  int i = ec_set_format(ad, 0, pos, end - pos);
472
  cli_printf(c, -1012, "%s", buf);
473
  while (i)
474
    {
475
      i = ec_set_format(ad, i, buf, end - buf - 1);
476
      cli_printf(c, -1012, "\t%s", buf);
477
    }
478
}
479

  
468 480
/**
469 481
 * ea_show - print an &eattr to CLI
470 482
 * @c: destination CLI
......
523 535
	case EAF_TYPE_INT_SET:
524 536
	  ea_show_int_set(c, ad, 1, pos, buf, end);
525 537
	  return;
538
	case EAF_TYPE_EC_SET:
539
	  ea_show_ec_set(c, ad, pos, buf, end);
540
	  return;
526 541
	case EAF_TYPE_UNDEF:
527 542
	default:
528 543
	  bsprintf(pos, "<type %02x>", e->type);

Also available in: Unified diff