diff options
author | Chris Johns <chrisj@rtems.org> | 2016-06-30 13:32:29 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2016-07-06 10:56:23 +1000 |
commit | 761ae78e0528ac5c1f46df11e9bea453ac6c82dd (patch) | |
tree | ca17a675b6726a252f5c456f012684d360ab161b /rtemsbsd/nfsclient/rpcio.c | |
parent | Provide empty RTEMS_BSD_CFGDECL_.* defines if not used. (diff) | |
download | rtems-libbsd-761ae78e0528ac5c1f46df11e9bea453ac6c82dd.tar.bz2 |
Make the license message viewable with a verbose option.
The license details can be viewed if you mount with a -v option:
# mount -i nfs -o "-v" 1.2.3.4:/mnt /mnt
Diffstat (limited to '')
-rw-r--r-- | rtemsbsd/nfsclient/rpcio.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/rtemsbsd/nfsclient/rpcio.c b/rtemsbsd/nfsclient/rpcio.c index 6bc1aada..cd04de33 100644 --- a/rtemsbsd/nfsclient/rpcio.c +++ b/rtemsbsd/nfsclient/rpcio.c @@ -954,7 +954,7 @@ rpcSetXIDs(uint32_t xid) } int -rpcUdpInit(void) +rpcUdpInit(bool verbose) { int s; rtems_status_code status; @@ -962,9 +962,11 @@ int noblock = 1; struct kevent change; if (ourSock < 0) { - fprintf(stderr,"RTEMS-RPCIOD $Release$, " \ - "Till Straumann, Stanford/SLAC/SSRL 2002, " \ - "See LICENSE file for licensing info.\n"); + + if (verbose) + fprintf(stderr,"RTEMS-RPCIOD, " \ + "Till Straumann, Stanford/SLAC/SSRL 2002, " \ + "See LICENSE for licensing info.\n"); ourSock=socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); if (ourSock>=0) { |