Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongoose
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esp
mongoose
Commits
fd45a6d3
Commit
fd45a6d3
authored
Nov 10, 2016
by
Deomid Ryabkov
Committed by
Cesanta Bot
Nov 10, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CS_LOG_TS_DIFF -> CS_LOG_ENABLE_TS_DIFF; ifdef->if
PUBLISHED_FROM=48c8d4326ea8a24edd8d1ca011be9e7643219084
parent
e1a9ad7f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
cs_dbg.h
examples/CC3200/cs_dbg.h
+2
-2
cs_dbg.h
examples/MSP432/ccs/MSP432_MG_hello/cs_dbg.h
+2
-2
mongoose.c
mongoose.c
+5
-5
No files found.
examples/CC3200/cs_dbg.h
View file @
fd45a6d3
...
...
@@ -14,8 +14,8 @@
#define CS_ENABLE_DEBUG 0
#endif
#ifndef CS_LOG_TS_DIFF
#define CS_LOG_TS_DIFF 0
#ifndef CS_LOG_
ENABLE_
TS_DIFF
#define CS_LOG_
ENABLE_
TS_DIFF 0
#endif
#ifdef __cplusplus
...
...
examples/MSP432/ccs/MSP432_MG_hello/cs_dbg.h
View file @
fd45a6d3
...
...
@@ -14,8 +14,8 @@
#define CS_ENABLE_DEBUG 0
#endif
#ifndef CS_LOG_TS_DIFF
#define CS_LOG_TS_DIFF 0
#ifndef CS_LOG_
ENABLE_
TS_DIFF
#define CS_LOG_
ENABLE_
TS_DIFF 0
#endif
#ifdef __cplusplus
...
...
mongoose.c
View file @
fd45a6d3
...
...
@@ -187,8 +187,8 @@ MG_INTERNAL void mg_close_conn(struct mg_connection *conn);
#define CS_ENABLE_DEBUG 0
#endif
#ifndef CS_LOG_TS_DIFF
#define CS_LOG_TS_DIFF 0
#ifndef CS_LOG_
ENABLE_
TS_DIFF
#define CS_LOG_
ENABLE_
TS_DIFF 0
#endif
#ifdef __cplusplus
...
...
@@ -279,14 +279,14 @@ enum cs_log_level cs_log_level =
FILE
*
cs_log_file
=
NULL
;
#if
def CS_LOG
_TS_DIFF
#if
CS_LOG_ENABLE
_TS_DIFF
double
cs_log_ts
;
#endif
void
cs_log_print_prefix
(
const
char
*
func
)
{
if
(
cs_log_file
==
NULL
)
cs_log_file
=
stderr
;
fprintf
(
cs_log_file
,
"%-20s "
,
func
);
#if
def CS_LOG
_TS_DIFF
#if
CS_LOG_ENABLE
_TS_DIFF
{
double
now
=
cs_time
();
fprintf
(
cs_log_file
,
"%7u "
,
(
unsigned
int
)
((
now
-
cs_log_ts
)
*
1000000
));
...
...
@@ -312,7 +312,7 @@ void cs_log_set_file(FILE *file) {
void
cs_log_set_level
(
enum
cs_log_level
level
)
{
cs_log_level
=
level
;
#if CS_LOG_TS_DIFF && CS_ENABLE_STDIO
#if CS_LOG_
ENABLE_
TS_DIFF && CS_ENABLE_STDIO
cs_log_ts
=
cs_time
();
#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