summaryrefslogtreecommitdiff
path: root/nuttx/examples/nsh/nsh_fscmds.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-09-07 20:18:36 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-09-07 20:18:36 +0000
commit2831d048c995917abbf96226f3a23efff3d01d0c (patch)
treed278a601284e141de274b5884285f05e95379f62 /nuttx/examples/nsh/nsh_fscmds.c
parent33ebc18c23173530e25b9585010e3411530f4940 (diff)
downloadnuttx-2831d048c995917abbf96226f3a23efff3d01d0c.tar.gz
nuttx-2831d048c995917abbf96226f3a23efff3d01d0c.tar.bz2
nuttx-2831d048c995917abbf96226f3a23efff3d01d0c.zip
update
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@893 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/examples/nsh/nsh_fscmds.c')
-rw-r--r--nuttx/examples/nsh/nsh_fscmds.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/nuttx/examples/nsh/nsh_fscmds.c b/nuttx/examples/nsh/nsh_fscmds.c
index f6049e67e..43ef483a6 100644
--- a/nuttx/examples/nsh/nsh_fscmds.c
+++ b/nuttx/examples/nsh/nsh_fscmds.c
@@ -852,6 +852,10 @@ int cmd_mkrd(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
fmt = g_fmtcmdoutofmemory;
goto errout_with_fmt;
}
+
+#ifdef CONFIG_DEBUG_VERBOSE
+ memset(buffer, 0, sectsize * nsectors);
+#endif
dbg("RAMDISK at %p\n", buffer);
/* Then register the ramdisk */