Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: WiFlyHTTPServerSample MultiThreadingHTTPServer
Diff: Handler/FsHandler.cpp
- Revision:
- 13:93ff322420b0
- Parent:
- 12:ba81cc117fb6
diff -r ba81cc117fb6 -r 93ff322420b0 Handler/FsHandler.cpp
--- a/Handler/FsHandler.cpp Wed Jun 05 23:39:24 2013 +0000
+++ b/Handler/FsHandler.cpp Wed Jun 26 21:12:42 2013 +0000
@@ -2,18 +2,8 @@
#include "mbed.h"
#include "FsHandler.h"
-
-#define _DEBUG 0
-
-#if (_DEBUG && !defined(TARGET_LPC11U24))
-#define INFO(x, ...) std::printf("[HTTPFsRequestHandler : DBG]"x"\r\n", ##__VA_ARGS__);
-#define WARN(x, ...) std::printf("[HTTPFsRequestHandler : DBG]"x"\r\n", ##__VA_ARGS__);
-#define ERR(x, ...) std::printf("[HTTPFsRequestHandler : DBG]"x"\r\n", ##__VA_ARGS__);
-#else
-#define INFO(x, ...)
-#define WARN(x, ...)
-#define ERR(x, ...)
-#endif
+//#define DEBUG
+#include "debug.h"
@@ -30,8 +20,8 @@
std::map<const char*, const char*> HTTPFsRequestHandler::m_fsMap;
-HTTPFsRequestHandler::HTTPFsRequestHandler(const char* rootPath, const char* localPath, HTTPConnection::HTTPMessage& Msg, TCPSocketConnection& Tcp)
- : HTTPRequestHandler(Msg, Tcp)
+HTTPFsRequestHandler::HTTPFsRequestHandler(const char* rootPath, const char* localPath, HTTPConnection::HTTPMessage& Msg)
+ : HTTPRequestHandler(Msg)
{
m_rootPath = rootPath;
m_localPath = localPath;