diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-02-20 22:39:56 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-02-20 22:39:56 +0000 |
commit | 630b4bdd3d2ca967f0e1d4f438f7f1761461dd31 (patch) | |
tree | f640e5eab1ce66cdeadd0ab3684ea326f56db8a5 /nuttx/examples/ostest/dev_null.c | |
parent | bd7dce092d36128a0f84e5544ccc857a45f6ba2f (diff) | |
download | nuttx-630b4bdd3d2ca967f0e1d4f438f7f1761461dd31.tar.gz nuttx-630b4bdd3d2ca967f0e1d4f438f7f1761461dd31.tar.bz2 nuttx-630b4bdd3d2ca967f0e1d4f438f7f1761461dd31.zip |
Eliminating GCC dependencies
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@14 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/examples/ostest/dev_null.c')
-rw-r--r-- | nuttx/examples/ostest/dev_null.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/nuttx/examples/ostest/dev_null.c b/nuttx/examples/ostest/dev_null.c index 11d6056c8..f9ca5623a 100644 --- a/nuttx/examples/ostest/dev_null.c +++ b/nuttx/examples/ostest/dev_null.c @@ -64,27 +64,27 @@ int dev_null(void) fd = open("/dev/null", O_RDWR); if (fd < 0) { - fprintf(stderr, "%s: Failed to open /dev/null\n", __FUNCTION__); + fprintf(stderr, "dev_null: Failed to open /dev/null\n"); return -1; } nbytes = read(fd, buffer, 1024); if (nbytes < 0) { - fprintf(stderr, "%s: Failed to read from /dev/null\n", __FUNCTION__); + fprintf(stderr, "dev_null: Failed to read from /dev/null\n"); close(fd); return -1; } - printf("%s: Read %d bytes from /dev/null\n", __FUNCTION__, nbytes); + printf("dev_null: Read %d bytes from /dev/null\n", nbytes); nbytes = write(fd, buffer, 1024); if (nbytes < 0) { - fprintf(stderr, "%s: Failed to write to /dev/null\n", __FUNCTION__); + fprintf(stderr, "dev_null: Failed to write to /dev/null\n"); close(fd); return -1; } - printf("%s: Wrote %d bytes to /dev/null\n", __FUNCTION__, nbytes); + printf("dev_null: Wrote %d bytes to /dev/null\n", nbytes); close(fd); return 0; |