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


The following commit(s) were added to refs/heads/master by this push:
     new 0e519328c fstest: Add header to fix build issues
0e519328c is described below

commit 0e519328c879b7e1b90c194d67589b4a380a7fe3
Author: yintao <yin...@xiaomi.com>
AuthorDate: Tue Sep 24 09:55:04 2024 +0800

    fstest: Add header to fix build issues
    
    Signed-off-by: yintao <yin...@xiaomi.com>
---
 testing/fstest/fstest_main.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/testing/fstest/fstest_main.c b/testing/fstest/fstest_main.c
index 875419b0b..17b5b904e 100644
--- a/testing/fstest/fstest_main.c
+++ b/testing/fstest/fstest_main.c
@@ -32,6 +32,8 @@
 #include <sys/boardctl.h>
 #endif
 
+#include <inttypes.h>
+#include <stdbool.h>
 #include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -41,9 +43,8 @@
 #include <dirent.h>
 #include <string.h>
 #include <errno.h>
-#include <debug.h>
-#include <assert.h>
 
+#include <nuttx/compiler.h>
 #include <nuttx/crc32.h>
 
 /****************************************************************************
@@ -110,8 +111,10 @@ static void fstest_showmemusage(struct mallinfo *mmbefore,
                                    mmafter->arena    - mmbefore->arena);
   printf("ordblks  %8d %8d %8d\n", mmbefore->ordblks , mmafter->ordblks,
                                    mmafter->ordblks  - mmbefore->ordblks);
+#ifdef __NuttX__
   printf("mxordblk %8x %8x %8x\n", mmbefore->mxordblk, mmafter->mxordblk,
                                    mmafter->mxordblk - mmbefore->mxordblk);
+#endif
   printf("uordblks %8x %8x %8x\n", mmbefore->uordblks, mmafter->uordblks,
                                    mmafter->uordblks - mmbefore->uordblks);
   printf("fordblks %8x %8x %8x\n", mmbefore->fordblks, mmafter->fordblks,

Reply via email to