diff options
Diffstat (limited to 'apps/examples/smart_test')
-rw-r--r-- | apps/examples/smart_test/Makefile | 2 | ||||
-rw-r--r-- | apps/examples/smart_test/README.txt | 2 | ||||
-rw-r--r-- | apps/examples/smart_test/smart_test.c | 8 |
3 files changed, 6 insertions, 6 deletions
diff --git a/apps/examples/smart_test/Makefile b/apps/examples/smart_test/Makefile index 5864b1cdc..fb6100464 100644 --- a/apps/examples/smart_test/Makefile +++ b/apps/examples/smart_test/Makefile @@ -71,7 +71,7 @@ ROOTDEPPATH = --dep-path . # Common build -VPATH = +VPATH = all: .built .PHONY: context depend clean distclean diff --git a/apps/examples/smart_test/README.txt b/apps/examples/smart_test/README.txt index 4102df9e7..3cd9e5536 100644 --- a/apps/examples/smart_test/README.txt +++ b/apps/examples/smart_test/README.txt @@ -11,7 +11,7 @@ append and seek-with-write operations. Usage: flash_test mtdblock_device - + Additional options: --force to replace existing installation diff --git a/apps/examples/smart_test/smart_test.c b/apps/examples/smart_test/smart_test.c index efce1b0bf..bffb04c2c 100644 --- a/apps/examples/smart_test/smart_test.c +++ b/apps/examples/smart_test/smart_test.c @@ -104,12 +104,12 @@ static int smart_create_test_file(char *filename) sprintf(string, "This is line %d at offset %d\n", x, g_linePos[x]); g_lineLen[x] = strlen(string); - fprintf(fd, "%s", string); + fprintf(fd, "%s", string); printf("\r%d", x); fflush(stdout); - } - + } + /* Close the file */ printf("\r\nDone.\n"); @@ -203,7 +203,7 @@ static int smart_append_test(char *filename) /* Now seek to the end of the file and ensure that is where * pos is. */ - + fseek(fd, 0, SEEK_END); if (ftell(fd) != pos) { |