This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git

commit a2bed53b15709b3e8790607b7d3ec9a177f3f8c3
Author: huojianchao <[email protected]>
AuthorDate: Tue Nov 24 14:08:52 2026 +0800

    system/debugpoint: fix the indentation of parse_options()
    
    The code after the getopt() loop of parse_options() is indented one
    level too deep, and the declaration of cmd lacks the blank line after
    it, which nxstyle reports.  No functional change.
    
    Assisted-by: Kiro:claude-opus-5-5
    Signed-off-by: huojianchao <[email protected]>
---
 system/debugpoint/debug.c | 31 ++++++++++++++++---------------
 1 file changed, 16 insertions(+), 15 deletions(-)

diff --git a/system/debugpoint/debug.c b/system/debugpoint/debug.c
index d3861c451..da4178fbb 100644
--- a/system/debugpoint/debug.c
+++ b/system/debugpoint/debug.c
@@ -289,6 +289,7 @@ static bool parse_options(int argc, FAR char *argv[],
                           struct debug_option *opt)
 {
   int cmd;
+
   while ((cmd = getopt(argc, argv, "r:w:b:x:cl:")) != -1)
     {
       switch (cmd)
@@ -349,21 +350,21 @@ static bool parse_options(int argc, FAR char *argv[],
         }
     }
 
-    if (opt->width == 0)
-      {
-        /* If the watch length is not specified,
-         * default to 4 bytes for watchpoints
-         */
-
-        if (opt->type == GDB_STOPREASON_WATCHPOINT_RO ||
-            opt->type == GDB_STOPREASON_WATCHPOINT_WO ||
-            opt->type == GDB_STOPREASON_WATCHPOINT_RW)
-          {
-            opt->width = 4;
-          }
-      }
-
-    return true;
+  if (opt->width == 0)
+    {
+      /* If the watch length is not specified,
+       * default to 4 bytes for watchpoints
+       */
+
+      if (opt->type == GDB_STOPREASON_WATCHPOINT_RO ||
+          opt->type == GDB_STOPREASON_WATCHPOINT_WO ||
+          opt->type == GDB_STOPREASON_WATCHPOINT_RW)
+        {
+          opt->width = 4;
+        }
+    }
+
+  return true;
 }
 
 /****************************************************************************

Reply via email to