summaryrefslogtreecommitdiff
path: root/nuttx/lib/lib_getenv.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-11-24 13:59:57 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-11-24 13:59:57 +0000
commitb4c624a2a52f28442a1ceab080d491d83f3b7731 (patch)
treea72b1e5b8dac00117d4a07c86d6c10e163f2b39e /nuttx/lib/lib_getenv.c
parentb1ba6835d554382c77a216a3f2eb3fa7ded96535 (diff)
downloadpx4-nuttx-b4c624a2a52f28442a1ceab080d491d83f3b7731.tar.gz
px4-nuttx-b4c624a2a52f28442a1ceab080d491d83f3b7731.tar.bz2
px4-nuttx-b4c624a2a52f28442a1ceab080d491d83f3b7731.zip
fs/ and lib/ debug can be selectively enabled
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@406 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/lib/lib_getenv.c')
-rw-r--r--nuttx/lib/lib_getenv.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/nuttx/lib/lib_getenv.c b/nuttx/lib/lib_getenv.c
index dd659393a..bddd2cb0a 100644
--- a/nuttx/lib/lib_getenv.c
+++ b/nuttx/lib/lib_getenv.c
@@ -103,7 +103,7 @@ char *getenv(const char *name)
const char *pend = &environment[size-1];
const char *ptmp;
- dbg("name=\"%s\"\n", name);
+ ldbg("name=\"%s\"\n", name);
if (name)
{
@@ -111,7 +111,7 @@ char *getenv(const char *name)
while (penv < pend)
{
- vdbg("Compare to=\"%s\"\n", penv);
+ lvdbg("Compare to=\"%s\"\n", penv);
/* The logic below basically implements a version of
* strcmp where the strings may be terminated with = signs.
@@ -130,7 +130,7 @@ char *getenv(const char *name)
{
/* Yes.. return the pointer to the value. */
- dbg("Returning \"%s\"\n", penv+1);
+ ldbg("Returning \"%s\"\n", penv+1);
return ((char*)penv+1);
}
else
@@ -165,6 +165,6 @@ char *getenv(const char *name)
/* If we got here, then no matching string was found. */
- dbg("Returning NULL\n");
+ ldbg("Returning NULL\n");
return NULL;
}