From 93ced081dcab9efd4dbadfce823e7163e0be35b2 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Tue, 26 Aug 2025 15:21:00 +0900 Subject: [PATCH] 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 --- 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 #endif #include #include -#if defined(__NuttX__) +#ifdef __NuttX__ #include #endif #include @@ -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);