<!DOCTYPE html><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<p><br>
</p>
<div class="moz-cite-prefix">On 8/15/2024 12:16 PM, Gustavo Sousa
wrote:<br>
</div>
<blockquote type="cite" cite="mid:20240815191626.49244-1-gustavo.sousa@intel.com">
<pre class="moz-quote-pre" wrap="">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 <a class="moz-txt-link-rfc2396E" href="mailto:gustavo.sousa@intel.com"><gustavo.sousa@intel.com></a>
---
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(<a class="moz-txt-link-rfc2396E" href="read:Read[count]bytesdpcdregatanoffset\n">" read: Read [count] bytes dpcd reg at an offset\n"</a>);
printf(" write: Write a dpcd reg at an offset\n\n");
printf("Options for the above COMMANDS are\n");</pre>
</blockquote>
<span style="white-space: pre-wrap">Reviewed-by: Jagmeet Randhawa <a class="moz-txt-link-rfc2396E" href="mailto:jagmeet.randhawa@intel.com"><jagmeet.randhawa@intel.com></a>
</span>
</body>
</html>