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.git

commit eb93650040425cb8db55e6c3f8f915cb138d9418
Author: Marco Casaroli <[email protected]>
AuthorDate: Thu Nov 5 06:51:54 2026 +0100

    libs/libc/stream: Fix the indentation of a union in lib_libbsprintf.c.
    
    nxstyle reports "Bad left brace alignment" on this union, and the check
    covers each file that a change touches.  The error is older than the
    change that follows.  This commit changes only white space.
    
    Assisted-by: Claude Code:claude-opus-5-5
    Signed-off-by: Marco Casaroli <[email protected]>
---
 libs/libc/stream/lib_libbsprintf.c | 30 +++++++++++++++---------------
 1 file changed, 15 insertions(+), 15 deletions(-)

diff --git a/libs/libc/stream/lib_libbsprintf.c 
b/libs/libc/stream/lib_libbsprintf.c
index 6939dd76fed..d7cf54f486e 100644
--- a/libs/libc/stream/lib_libbsprintf.c
+++ b/libs/libc/stream/lib_libbsprintf.c
@@ -38,25 +38,25 @@ int lib_bsprintf(FAR struct lib_outstream_s *s, FAR const 
IPTR char *fmt,
                  FAR const void *buf)
 {
   begin_packed_struct union
-    {
-      char c;
-      char s[1];
-      short int si;
-      int i;
-      long l;
-      long long ll;
-      intmax_t im;
-      size_t sz;
-      ptrdiff_t pd;
-      uintptr_t p;
+  {
+    char c;
+    char s[1];
+    short int si;
+    int i;
+    long l;
+    long long ll;
+    intmax_t im;
+    size_t sz;
+    ptrdiff_t pd;
+    uintptr_t p;
 #ifdef CONFIG_HAVE_DOUBLE
-      float f;
-      double d;
+    float f;
+    double d;
 #  ifdef CONFIG_HAVE_LONG_DOUBLE
-      long double ld;
+    long double ld;
 #  endif
 #endif
-    }
+  }
 
   end_packed_struct *var;
   FAR const char *prec = NULL;

Reply via email to