Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
b5361f77
Commit
b5361f77
authored
Aug 12, 2006
by
Warren Dukes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
always support DEBUG() logging, even if -DNDEBUG
git-svn-id:
https://svn.musicpd.org/mpd/trunk@4613
09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent
ca7fdaa9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
9 deletions
+1
-9
log.c
src/log.c
+0
-3
log.h
src/log.h
+1
-6
No files found.
src/log.c
View file @
b5361f77
...
@@ -188,10 +188,7 @@ mpd_printf void func(const char *fmt, ...) \
...
@@ -188,10 +188,7 @@ mpd_printf void func(const char *fmt, ...) \
log_func
(
ERROR
,
0
,
stderr
)
log_func
(
ERROR
,
0
,
stderr
)
log_func
(
LOG
,
0
,
stdout
)
log_func
(
LOG
,
0
,
stdout
)
log_func
(
SECURE
,
LOG_LEVEL_SECURE
,
stdout
)
log_func
(
SECURE
,
LOG_LEVEL_SECURE
,
stdout
)
#ifndef NDEBUG
log_func
(
DEBUG
,
LOG_LEVEL_DEBUG
,
stdout
)
log_func
(
DEBUG
,
LOG_LEVEL_DEBUG
,
stdout
)
#endif
/* NDEBUG */
#undef log_func
#undef log_func
...
...
src/log.h
View file @
b5361f77
...
@@ -29,15 +29,10 @@
...
@@ -29,15 +29,10 @@
#define LOG_LEVEL_SECURE 1
#define LOG_LEVEL_SECURE 1
#define LOG_LEVEL_DEBUG 2
#define LOG_LEVEL_DEBUG 2
#ifndef NDEBUG
mpd_printf
void
DEBUG
(
const
char
*
fmt
,
...);
#else
static
inline
void
DEBUG
(
const
char
*
fmt
,
...)
{
}
#endif
mpd_printf
void
ERROR
(
const
char
*
fmt
,
...);
mpd_printf
void
ERROR
(
const
char
*
fmt
,
...);
mpd_printf
void
LOG
(
const
char
*
fmt
,
...);
mpd_printf
void
LOG
(
const
char
*
fmt
,
...);
mpd_printf
void
SECURE
(
const
char
*
fmt
,
...);
mpd_printf
void
SECURE
(
const
char
*
fmt
,
...);
mpd_printf
void
DEBUG
(
const
char
*
fmt
,
...);
mpd_printf
void
WARNING
(
const
char
*
fmt
,
...);
mpd_printf
void
WARNING
(
const
char
*
fmt
,
...);
mpd_printf
void
FATAL
(
const
char
*
fmt
,
...);
mpd_printf
void
FATAL
(
const
char
*
fmt
,
...);
...
...
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