mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
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:
parent
78bae4f14f
commit
93ced081dc
1 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue