Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t] tools/dpcd_reg: Advertise the dump command in usage text
@ 2024-08-15 19:16 Gustavo Sousa
  2024-08-15 19:25 ` Randhawa, Jagmeet
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Gustavo Sousa @ 2024-08-15 19:16 UTC (permalink / raw)
  To: igt-dev; +Cc: Rodrigo Vivi

When no command is passed, the default operation for dpcd_reg is to dump
DPCD data. However, passing "dump" explicitly is also supported.

Improve the help message to let the user know about the "dump" command
and that it is the default operation.

Signed-off-by: Gustavo Sousa <gustavo.sousa@intel.com>
---
 tools/dpcd_reg.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/dpcd_reg.c b/tools/dpcd_reg.c
index 2761168d0030..7d497e36a46b 100644
--- a/tools/dpcd_reg.c
+++ b/tools/dpcd_reg.c
@@ -89,6 +89,7 @@ static void print_usage(void)
 {
 	printf("Usage: dpcd_reg [OPTION ...] COMMAND\n\n");
 	printf("COMMAND is one of:\n");
+	printf("  dump:		Dump dpcd data (default command)\n");
 	printf("  read:		Read [count] bytes dpcd reg at an offset\n");
 	printf("  write:	Write a dpcd reg at an offset\n\n");
 	printf("Options for the above COMMANDS are\n");
-- 
2.46.0


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-08-19 17:46 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-15 19:16 [PATCH i-g-t] tools/dpcd_reg: Advertise the dump command in usage text Gustavo Sousa
2024-08-15 19:25 ` Randhawa, Jagmeet
2024-08-15 19:47 ` ✓ CI.xeBAT: success for " Patchwork
2024-08-15 19:54 ` ✓ Fi.CI.BAT: " Patchwork
2024-08-15 23:23 ` ✗ CI.xeFULL: failure " Patchwork
2024-08-19 17:42   ` Kamil Konieczny
2024-08-16 10:27 ` ✗ Fi.CI.IGT: " Patchwork
2024-08-19 17:46   ` Kamil Konieczny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox