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

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

commit 93ced081dcab9efd4dbadfce823e7163e0be35b2
Author: YAMAMOTO Takashi <yamam...@midokura.com>
AuthorDate: Tue Aug 26 15:21:00 2025 +0900

    system/dd/dd_main.c: replace `#if defined` with `#ifdef`
    
    Although I personally prefer the former, at least one reviewer
    preferred the latter. I coundn't find project-wide preferences.
    Anyway, this is not important for me.
    
    Signed-off-by: YAMAMOTO Takashi <yamam...@midokura.com>
---
 system/dd/dd_main.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/system/dd/dd_main.c b/system/dd/dd_main.c
index a67698608..f73d9a999 100644
--- a/system/dd/dd_main.c
+++ b/system/dd/dd_main.c
@@ -24,14 +24,14 @@
  * Included Files
  ****************************************************************************/
 
-#if defined(__NuttX__)
+#ifdef __NuttX__
 #include <nuttx/config.h>
 #endif
 
 #include <sys/types.h>
 #include <sys/stat.h>
 
-#if defined(__NuttX__)
+#ifdef __NuttX__
 #include <debug.h>
 #endif
 #include <inttypes.h>
@@ -248,7 +248,7 @@ static int dd_verify(FAR struct dd_s *dd)
 
       if (memcmp(dd->buffer, buffer, dd->nbytes) != 0)
         {
-#if defined(__NuttX__)
+#ifdef __NuttX__
           char msg[32];
           snprintf(msg, sizeof(msg), "infile sector %d", sector);
           lib_dumpbuffer(msg, dd->buffer, dd->nbytes);

Reply via email to