diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2015-01-03 09:53:35 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2015-01-03 09:53:35 -0600 |
commit | 51e1f4713e4f29638ada4c08d8845cfb4a7b0768 (patch) | |
tree | 40ab3c877f8e0ce2383654ad48882b24622d6d1a /apps/netutils | |
parent | fe3d692d803f03000ac5c4c73d9dfe376873857e (diff) | |
download | nuttx-51e1f4713e4f29638ada4c08d8845cfb4a7b0768.tar.gz nuttx-51e1f4713e4f29638ada4c08d8845cfb4a7b0768.tar.bz2 nuttx-51e1f4713e4f29638ada4c08d8845cfb4a7b0768.zip |
Telnetd: EBUSY is not an error in this case, then why report an error?
Diffstat (limited to 'apps/netutils')
-rw-r--r-- | apps/netutils/telnetd/telnetd_driver.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/apps/netutils/telnetd/telnetd_driver.c b/apps/netutils/telnetd/telnetd_driver.c index c5a2e8b9b..53d4673ae 100644 --- a/apps/netutils/telnetd/telnetd_driver.c +++ b/apps/netutils/telnetd/telnetd_driver.c @@ -56,9 +56,9 @@ #include <string.h> #include <poll.h> #include <errno.h> -#include <nuttx/fs/fs.h> #include <debug.h> +#include <nuttx/fs/fs.h> #include <nuttx/net/net.h> #include <apps/netutils/telnetd.h> @@ -496,7 +496,7 @@ static int telnetd_close(FAR struct file *filep) ret = asprintf(&devpath, TELNETD_DEVFMT, priv->td_minor); if (ret < 0) { - nlldbg("Failed to allocate the driver path\n"); + nlldbg("ERROR: Failed to allocate the driver path\n"); } else { @@ -512,8 +512,11 @@ static int telnetd_close(FAR struct file *filep) * the final session terminates. */ - nlldbg("Failed to unregister the driver %s: %d\n", - devpath, ret); + if (ret != -EBUSY) + { + nlldbg("Failed to unregister the driver %s: %d\n", + devpath, ret); + } } free(devpath); |