Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
c54bc05b
Commit
c54bc05b
authored
Nov 19, 2016
by
Marcel Stör
Browse files
Fix macro as suggested in #1548
parent
c70dc749
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/http/httpclient.h
View file @
c54bc05b
...
...
@@ -10,16 +10,18 @@
#ifndef __HTTPCLIENT_H__
#define __HTTPCLIENT_H__
#if defined(GLOBAL_DEBUG_ON)
static
const
char
log_prefix
[]
=
"HTTP client: "
;
#if defined(DEVELOP_VERSION)
#define HTTPCLIENT_DEBUG_ON
#endif
#if defined(HTTPCLIENT_DEBUG_ON)
#define HTTPCLIENT_DEBUG(format, ...) dbg_printf("
HTTP client: "format"\n"
, ##__VA_ARGS__)
#define HTTPCLIENT_DEBUG(format, ...) dbg_printf("
%s"format"\n", log_prefix
, ##__VA_ARGS__)
#else
#define HTTPCLIENT_DEBUG(
format,
...)
#define HTTPCLIENT_DEBUG(...)
#endif
#if defined(NODE_ERROR)
#define HTTPCLIENT_ERR(format, ...) NODE_ERR("
HTTP client: "format"\n"
, ##__VA_ARGS__)
#define HTTPCLIENT_ERR(format, ...) NODE_ERR("
%s"format"\n", log_prefix
, ##__VA_ARGS__)
#else
#define HTTPCLIENT_ERR(...)
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment