NetServices Stack source
Dependents: HelloWorld ServoInterfaceBoardExample1 4180_Lab4
Diff: dbg/dbg.cpp
- Revision:
- 5:dd63a1e02b1b
- Parent:
- 2:a4f97773c90f
--- a/dbg/dbg.cpp Fri Jul 09 14:46:47 2010 +0000 +++ b/dbg/dbg.cpp Tue Jul 27 15:59:42 2010 +0000 @@ -27,31 +27,18 @@ #include "mbed.h" #include <cstdarg> -//LocalFileSystem dbgfs("dbgsfs"); - -//static FILE* m_fp = NULL; - void DebugStream::debug(const char* format, ...) -{ -// if(!m_fp) -// m_fp = fopen("/dbgsfs/dbg.txt", "a"); - +{ va_list argp; va_start(argp, format); vprintf(format, argp); - //vfprintf(m_fp, format, argp); va_end(argp); - - // printf("\r\n"); //Flush - //local("local"); // Create the local filesystem under the name "local" - -// fclose(m_fp); } void DebugStream::release() { - //fclose(m_fp); + } void DebugStream::breakPoint(const char* file, int line)