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 <yamamoto@midokura.com>
This commit is contained in:
YAMAMOTO Takashi 2025-08-26 15:21:00 +09:00 committed by Xiang Xiao
parent 78bae4f14f
commit 93ced081dc

View file

@ -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);