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
This commit is contained in:
Chris Johns
2016-06-30 13:32:29 +10:00
parent 34f6271425
commit 761ae78e05
3 changed files with 21 additions and 16 deletions

View File

@@ -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) {