summaryrefslogtreecommitdiffstats
path: root/c
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2007-12-22 08:29:36 +0000
committerChris Johns <chrisj@rtems.org>2007-12-22 08:29:36 +0000
commit107f4d344619ae7afa8e0d9a738a308df568e474 (patch)
tree887ed3d95871494ee62196c0efe4f56fc0e43902 /c
parent2007-12-14 Chris Johns <chrisj@rtems.org> (diff)
downloadrtems-107f4d344619ae7afa8e0d9a738a308df568e474.tar.bz2
2007-12-22 Chris Johns <chrisj@rtems.org>
* nfsclient/src/nfs.c, nfsclient/src/rpcio.c: Adjust the length of the hello message. Just one line but still a little too long.
Diffstat (limited to 'c')
-rw-r--r--c/src/ChangeLog5
-rw-r--r--c/src/nfsclient/src/nfs.c16
-rw-r--r--c/src/nfsclient/src/rpcio.c9
3 files changed, 20 insertions, 10 deletions
diff --git a/c/src/ChangeLog b/c/src/ChangeLog
index 6d89344055..93dd21cc70 100644
--- a/c/src/ChangeLog
+++ b/c/src/ChangeLog
@@ -1,3 +1,8 @@
+2007-12-22 Chris Johns <chrisj@rtems.org>
+
+ * nfsclient/src/nfs.c, nfsclient/src/rpcio.c: Adjust the length of
+ the hello message. Just one line but still a little too long.
+
2007-12-14 Chris Johns <chrisj@rtems.org>
* wrapup/Makefile.am: Add libflash.a to the libbsp library.
diff --git a/c/src/nfsclient/src/nfs.c b/c/src/nfsclient/src/nfs.c
index 2b5a04e36f..f3e841cb8f 100644
--- a/c/src/nfsclient/src/nfs.c
+++ b/c/src/nfsclient/src/nfs.c
@@ -963,13 +963,19 @@ NfsNode rval = nfsNodeCreate(node->nfs, 0);
*/
void
nfsInit(int smallPoolDepth, int bigPoolDepth)
-{
+{
+static int initialised = 0;
entry dummy;
- fprintf(stderr,"This is RTEMS-NFS Release $Name$\n");
- fprintf(stderr,"($Id$)\n\n");
- fprintf(stderr,"Till Straumann, Stanford/SLAC/SSRL 2002\n");
- fprintf(stderr,"See LICENSE file for licensing info\n");
+ if (initialised)
+ return;
+
+ initialised = 1;
+
+ fprintf(stderr,
+ "RTEMS-NFS $Release$, " \
+ "Till Straumann, Stanford/SLAC/SSRL 2002, " \
+ "See LICENSE file for licensing info.\n");
/* Get a major number */
diff --git a/c/src/nfsclient/src/rpcio.c b/c/src/nfsclient/src/rpcio.c
index 52b579d9e8..302027d33d 100644
--- a/c/src/nfsclient/src/rpcio.c
+++ b/c/src/nfsclient/src/rpcio.c
@@ -920,12 +920,11 @@ rpcUdpInit(void)
int noblock = 1;
struct sockwakeup wkup;
- fprintf(stderr,"This is RTEMS-RPCIOD Release $Name$\n");
- fprintf(stderr,"($Id$)\n\n");
- fprintf(stderr,"Till Straumann, Stanford/SLAC/SSRL 2002\n");
- fprintf(stderr,"See LICENSE file for licensing info\n");
-
if (ourSock < 0) {
+ fprintf(stderr,"RTEMS-RPCIOD $Release$, " \
+ "Till Straumann, Stanford/SLAC/SSRL 2002, " \
+ "See LICENSE file for licensing info.\n");
+
ourSock=socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
if (ourSock>=0) {
bindresvport(ourSock,(struct sockaddr_in*)0);