From 7d2f1d7d9ed44d45b91ebdda9fe25d90cbaa92ab Mon Sep 17 00:00:00 2001 From: Ville Syrjälä Date: Wed, 19 Aug 2015 17:34:45 +0300 Subject: tools/intel_reg: Print the potential port names in the help text MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit v2: Repaint with Jani's favorite color Signed-off-by: Ville Syrjälä --- tools/intel_reg.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tools/intel_reg.c') diff --git a/tools/intel_reg.c b/tools/intel_reg.c index fb3461f7..84b3c9de 100644 --- a/tools/intel_reg.c +++ b/tools/intel_reg.c @@ -630,6 +630,11 @@ static int intel_reg_help(struct config *config, int argc, char *argv[]) printf("REGISTER is defined as:\n"); printf(" [(PORTNAME|PORTNUM|MMIO-OFFSET):](REGNAME|REGADDR)\n"); + printf("\n"); + printf("PORTNAME is one of:\n"); + intel_reg_spec_print_ports(); + printf("\n"); + printf("\n"); printf("OPTIONS common to most COMMANDS:\n"); printf(" --spec=PATH Read register spec from directory or file\n"); -- cgit v1.2.3