Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Knot DNS
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
22
Issues
22
List
Boards
Labels
Service Desk
Milestones
Merge Requests
17
Merge Requests
17
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Knot projects
Knot DNS
Commits
0329eba9
Commit
0329eba9
authored
Feb 28, 2017
by
Daniel Salzman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
log: remove compatibility logging wrappers
parent
66b0f287
Pipeline
#2120
passed with stages
in 12 minutes
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
11 deletions
+6
-11
src/knot/common/log.h
src/knot/common/log.h
+1
-6
src/knot/conf/base.h
src/knot/conf/base.h
+3
-3
src/knot/nameserver/log.h
src/knot/nameserver/log.h
+2
-2
No files found.
src/knot/common/log.h
View file @
0329eba9
/* Copyright (C) 201
6
CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
/* Copyright (C) 201
7
CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
...
...
@@ -130,11 +130,6 @@ __attribute__((format(printf, 4, 5)));
void
log_fmt_zone_str
(
int
priority
,
log_source_t
src
,
const
char
*
zone
,
const
char
*
fmt
,
...)
__attribute__
((
format
(
printf
,
4
,
5
)));
/* Compatibility wrappers. */
#define log_msg(priority, fmt, ...) log_fmt(priority, LOG_SOURCE_SERVER, fmt, ##__VA_ARGS__)
#define log_msg_zone(priority, zone, fmt, ...) log_fmt_zone(priority, LOG_SOURCE_ZONE, zone, fmt, ##__VA_ARGS__)
#define log_msg_zone_str(priority, zone, fmt, ...) log_fmt_zone_str(priority, LOG_SOURCE_ZONE, zone, fmt, ##__VA_ARGS__)
/*!
* \brief Convenient logging macros.
*/
...
...
src/knot/conf/base.h
View file @
0329eba9
/* Copyright (C) 201
6
CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
/* Copyright (C) 201
7
CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
...
...
@@ -43,11 +43,11 @@
/*! Configuration specific logging. */
#define CONF_LOG(severity, msg, ...) do { \
log_
msg(severity
, "config, " msg, ##__VA_ARGS__); \
log_
fmt(severity, LOG_SOURCE_SERVER
, "config, " msg, ##__VA_ARGS__); \
} while (0)
#define CONF_LOG_ZONE(severity, zone, msg, ...) do { \
log_
msg_zone(severity
, zone, "config, " msg, ##__VA_ARGS__); \
log_
fmt_zone(severity, LOG_SOURCE_ZONE
, zone, "config, " msg, ##__VA_ARGS__); \
} while (0)
/*! Configuration getter output. */
...
...
src/knot/nameserver/log.h
View file @
0329eba9
/* Copyright (C) 201
6
CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
/* Copyright (C) 201
7
CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
...
...
@@ -81,7 +81,7 @@ static inline const char *log_direction_name(enum log_direction direction)
do { \
char address[SOCKADDR_STRLEN] = ""; \
sockaddr_tostr(address, sizeof(address), remote); \
log_
msg_zone(priority
, zone, "%s, %s, %s: " fmt, \
log_
fmt_zone(priority, LOG_SOURCE_ZONE
, zone, "%s, %s, %s: " fmt, \
log_operation_name(op), log_direction_name(dir), address, \
## __VA_ARGS__); \
} while (0)
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