diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-02-20 18:02:55 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-02-20 18:02:55 +0000 |
commit | 9c6d2638a2c2b84a434d2a88aebfe03da6c18482 (patch) | |
tree | 4b95f487fa38221ffc958b2c0fbbfc172f292574 /nuttx/examples/nsh/nsh_main.c | |
parent | c2bbba7b6914bff65b42c1910a31598c2eadb45f (diff) | |
download | px4-nuttx-9c6d2638a2c2b84a434d2a88aebfe03da6c18482.tar.gz px4-nuttx-9c6d2638a2c2b84a434d2a88aebfe03da6c18482.tar.bz2 px4-nuttx-9c6d2638a2c2b84a434d2a88aebfe03da6c18482.zip |
strerror() is big; don't use it unless requested
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@717 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/examples/nsh/nsh_main.c')
-rw-r--r-- | nuttx/examples/nsh/nsh_main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nuttx/examples/nsh/nsh_main.c b/nuttx/examples/nsh/nsh_main.c index 3bf3044ea..204ff3479 100644 --- a/nuttx/examples/nsh/nsh_main.c +++ b/nuttx/examples/nsh/nsh_main.c @@ -132,7 +132,11 @@ const char g_fmtcmdnotfound[] = "nsh: %s: command not found\n"; const char g_fmtcmdnotimpl[] = "nsh: %s: command not implemented\n"; const char g_fmtnosuch[] = "nsh: %s: no such %s: %s\n"; const char g_fmttoomanyargs[] = "nsh: %s: too many arguments\n"; +#ifdef CONFIG_NSH_STRERROR const char g_fmtcmdfailed[] = "nsh: %s: %s failed: %s\n"; +#else +const char g_fmtcmdfailed[] = "nsh: %s: %s failed: %d\n"; +#endif const char g_fmtcmdoutofmemory[] = "nsh: %s: out of memory\n"; /**************************************************************************** |