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

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

commit 0dac6b5bd39ee84383a22d39dd65514cd0b29a6b
Author: Marco Casaroli <[email protected]>
AuthorDate: Sun Nov 8 11:56:11 2026 +0100

    testing/libc/scanftest: Fix the indentation of a switch.
    
    The case labels of the switch in the type modifier test are level with
    its braces, and nxstyle reports each line as bad alignment.  Indent the
    body of the switch by two more columns.  White space only.
    
    Assisted-by: Claude Code:claude-opus-5-5
    Signed-off-by: Marco Casaroli <[email protected]>
---
 testing/libc/scanftest/scanftest_main.c | 218 ++++++++++++++++----------------
 1 file changed, 109 insertions(+), 109 deletions(-)

diff --git a/testing/libc/scanftest/scanftest_main.c 
b/testing/libc/scanftest/scanftest_main.c
index 0b1e614ae..6c262f9a3 100644
--- a/testing/libc/scanftest/scanftest_main.c
+++ b/testing/libc/scanftest/scanftest_main.c
@@ -1359,115 +1359,115 @@ int main(int argc, FAR char *argv[])
       ok = true;
       switch (type_data[t].type)
         {
-        case HH_MOD_S:
-          hhs = 0L;
-          sscanf(type_data[t].input, type_data[t].format, &hhs);
-          if (type_data[t].value.s != hhs)
-            {
-              printf("Test #%u assigned %hhd instead of %lli.\n", t + 1,
-                     hhs, type_data[t].value.s);
-              ok = false;
-            }
-          break;
-
-        case HH_MOD_U:
-          hhu = 0L;
-          sscanf(type_data[t].input, type_data[t].format, &hhu);
-          if (type_data[t].value.u != hhu)
-            {
-              printf("Test #%u assigned %hhu instead of %lli.\n",
-                     t + 1, hhu, type_data[t].value.u);
-              ok = false;
-            }
-          break;
-
-        case H_MOD_S:
-          hs = 0L;
-          sscanf(type_data[t].input, type_data[t].format, &hs);
-          if (type_data[t].value.s != hs)
-            {
-              printf("Test #%u assigned %hd instead of %lli.\n",
-                     t + 1, hs, type_data[t].value.s);
-              ok = false;
-            }
-          break;
-
-        case H_MOD_U:
-          hu = 0L;
-          sscanf(type_data[t].input, type_data[t].format, &hu);
-          if (type_data[t].value.u != hu)
-            {
-              printf("Test #%u assigned %hu instead of %lli.\n",
-                     t + 1, hu, type_data[t].value.u);
-              ok = false;
-            }
-          break;
-
-        case NO_MOD_S:
-          nos = 0L;
-          sscanf(type_data[t].input, type_data[t].format, &nos);
-          if (type_data[t].value.s != nos)
-            {
-              printf("Test #%u assigned %d instead of %lli.\n",
-                     t + 1, nos, type_data[t].value.s);
-              ok = false;
-            }
-          break;
-
-        case NO_MOD_U:
-          nou = 0L;
-          sscanf(type_data[t].input, type_data[t].format, &nou);
-          if (type_data[t].value.u != nou)
-            {
-              printf("Test #%u assigned %u instead of %lli.\n",
-                     t + 1, nou, type_data[t].value.u);
-              ok = false;
-            }
-          break;
-
-        case L_MOD_S:
-          ls = 0L;
-          sscanf(type_data[t].input, type_data[t].format, &ls);
-          if (type_data[t].value.s != ls)
-            {
-              printf("Test #%u assigned %ld instead of %lli.\n",
-                     t + 1, ls, type_data[t].value.s);
-              ok = false;
-            }
-          break;
-
-        case L_MOD_U:
-          lu = 0L;
-          sscanf(type_data[t].input, type_data[t].format, &lu);
-          if (type_data[t].value.u != lu)
-            {
-              printf("Test #%u assigned %lu instead of %lli.\n",
-                     t + 1, lu, type_data[t].value.u);
-              ok = false;
-            }
-          break;
-
-        case LL_MOD_S:
-          lls = 0L;
-          sscanf(type_data[t].input, type_data[t].format, &lls);
-          if (type_data[t].value.s != lls)
-            {
-              printf("Test #%u assigned %lld instead of %lli.\n",
-                     t + 1, lls, type_data[t].value.s);
-              ok = false;
-            }
-          break;
-
-        case LL_MOD_U:
-          llu = 0L;
-          sscanf(type_data[t].input, type_data[t].format, &llu);
-          if (type_data[t].value.u != llu)
-            {
-              printf("Test #%u assigned %llu instead of %lli.\n",
-                     t + 1, llu, type_data[t].value.u);
-              ok = false;
-            }
-          break;
+          case HH_MOD_S:
+            hhs = 0L;
+            sscanf(type_data[t].input, type_data[t].format, &hhs);
+            if (type_data[t].value.s != hhs)
+              {
+                printf("Test #%u assigned %hhd instead of %lli.\n", t + 1,
+                       hhs, type_data[t].value.s);
+                ok = false;
+              }
+            break;
+
+          case HH_MOD_U:
+            hhu = 0L;
+            sscanf(type_data[t].input, type_data[t].format, &hhu);
+            if (type_data[t].value.u != hhu)
+              {
+                printf("Test #%u assigned %hhu instead of %lli.\n",
+                       t + 1, hhu, type_data[t].value.u);
+                ok = false;
+              }
+            break;
+
+          case H_MOD_S:
+            hs = 0L;
+            sscanf(type_data[t].input, type_data[t].format, &hs);
+            if (type_data[t].value.s != hs)
+              {
+                printf("Test #%u assigned %hd instead of %lli.\n",
+                       t + 1, hs, type_data[t].value.s);
+                ok = false;
+              }
+            break;
+
+          case H_MOD_U:
+            hu = 0L;
+            sscanf(type_data[t].input, type_data[t].format, &hu);
+            if (type_data[t].value.u != hu)
+              {
+                printf("Test #%u assigned %hu instead of %lli.\n",
+                       t + 1, hu, type_data[t].value.u);
+                ok = false;
+              }
+            break;
+
+          case NO_MOD_S:
+            nos = 0L;
+            sscanf(type_data[t].input, type_data[t].format, &nos);
+            if (type_data[t].value.s != nos)
+              {
+                printf("Test #%u assigned %d instead of %lli.\n",
+                       t + 1, nos, type_data[t].value.s);
+                ok = false;
+              }
+            break;
+
+          case NO_MOD_U:
+            nou = 0L;
+            sscanf(type_data[t].input, type_data[t].format, &nou);
+            if (type_data[t].value.u != nou)
+              {
+                printf("Test #%u assigned %u instead of %lli.\n",
+                       t + 1, nou, type_data[t].value.u);
+                ok = false;
+              }
+            break;
+
+          case L_MOD_S:
+            ls = 0L;
+            sscanf(type_data[t].input, type_data[t].format, &ls);
+            if (type_data[t].value.s != ls)
+              {
+                printf("Test #%u assigned %ld instead of %lli.\n",
+                       t + 1, ls, type_data[t].value.s);
+                ok = false;
+              }
+            break;
+
+          case L_MOD_U:
+            lu = 0L;
+            sscanf(type_data[t].input, type_data[t].format, &lu);
+            if (type_data[t].value.u != lu)
+              {
+                printf("Test #%u assigned %lu instead of %lli.\n",
+                       t + 1, lu, type_data[t].value.u);
+                ok = false;
+              }
+            break;
+
+          case LL_MOD_S:
+            lls = 0L;
+            sscanf(type_data[t].input, type_data[t].format, &lls);
+            if (type_data[t].value.s != lls)
+              {
+                printf("Test #%u assigned %lld instead of %lli.\n",
+                       t + 1, lls, type_data[t].value.s);
+                ok = false;
+              }
+            break;
+
+          case LL_MOD_U:
+            llu = 0L;
+            sscanf(type_data[t].input, type_data[t].format, &llu);
+            if (type_data[t].value.u != llu)
+              {
+                printf("Test #%u assigned %llu instead of %lli.\n",
+                       t + 1, llu, type_data[t].value.u);
+                ok = false;
+              }
+            break;
         }
 
       if (ok)

Reply via email to