@@ -629,8 +629,11 @@ static int intel_reg_help(struct config *config, int argc, char *argv[])
printf("\n");
printf("REGISTER is defined as:\n");
printf(" [(PORTNAME|PORTNUM|MMIO-OFFSET):](REGNAME|REGADDR)\n");
- printf("PORTNAME is one of: ");
+
+ printf("\n");
+ printf("PORTNAME is one of:\n ");
intel_reg_spec_print_ports();
+ printf("\n");
printf("\n");
printf("OPTIONS common to most COMMANDS:\n");
@@ -349,6 +349,5 @@ void intel_reg_spec_print_ports(void)
int i;
for (i = 0; i < ARRAY_SIZE(port_descs); i++)
- printf(" %s%c", port_descs[i].name,
- i == ARRAY_SIZE(port_descs) - 1 ? '\n' : ',');
+ printf("%s%s", i == 0 ? "" : ", ", port_descs[i].name);
}