You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2020/10/27 16:47:09 UTC

[GitHub] [incubator-nuttx-apps] v01d commented on a change in pull request #443: Changes for nuttx issue 1883

v01d commented on a change in pull request #443:
URL: https://github.com/apache/incubator-nuttx-apps/pull/443#discussion_r512856604



##########
File path: nshlib/nsh_netcmds.c
##########
@@ -391,7 +391,9 @@ static int nsh_foreach_netdev(nsh_netdev_callback_t callback,
   dir = opendir(CONFIG_NSH_PROC_MOUNTPOINT "/net");
   if (dir == NULL)
     {
-      nsh_error(vtbl, g_fmtcmdfailed, cmd, "opendir", NSH_ERRNO);
+      nsh_error(vtbl,
+                "%s: %s: Could not open %s/net (is procfs mounted?): %d\n",
+                "nsh", cmd, CONFIG_NSH_PROC_MOUNTPOINT, NSH_ERRNO);

Review comment:
       ```suggestion
                   "nsh: %s: Could not open %s/net (is procfs mounted?): %d\n",
                    cmd, CONFIG_NSH_PROC_MOUNTPOINT, NSH_ERRNO);
   ```




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org