Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
d1bf8af1
Unverified
Commit
d1bf8af1
authored
Aug 16, 2018
by
Stéphane Graber
Committed by
GitHub
Aug 16, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2535 from brauner/2018-08-16/cmd_fixes
log: add logging tools for commands; lxc-usernsexec: cleanup and bugfixes
parents
7a8e91c1
02af8066
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
1 deletion
+18
-1
Makefile.am
src/lxc/Makefile.am
+6
-1
lxc_usernsexec.c
src/lxc/cmd/lxc_usernsexec.c
+0
-0
log.h
src/lxc/log.h
+12
-0
No files found.
src/lxc/Makefile.am
View file @
d1bf8af1
...
...
@@ -325,7 +325,12 @@ lxc_user_nic_SOURCES = cmd/lxc_user_nic.c \
namespace.c namespace.h
\
network.c network.h
\
parse.c parse.h
lxc_usernsexec_SOURCES
=
cmd/lxc_usernsexec.c
lxc_usernsexec_SOURCES
=
cmd/lxc_usernsexec.c
\
conf.c conf.h
\
list.h
\
log.c log.h
\
namespace.c namespace.h
\
utils.c utils.h
endif
...
...
src/lxc/cmd/lxc_usernsexec.c
View file @
d1bf8af1
This diff is collapsed.
Click to expand it.
src/lxc/log.h
View file @
d1bf8af1
...
...
@@ -429,6 +429,18 @@ ATTR_UNUSED static inline void LXC_##LEVEL(struct lxc_log_locinfo* locinfo, \
ERROR("%s - " format, ptr, ##__VA_ARGS__); \
} while (0)
#define CMD_SYSERROR(format, ...) \
do { \
lxc_log_strerror_r; \
fprintf(stderr, "%s - " format, ptr, ##__VA_ARGS__); \
} while (0)
#define CMD_SYSINFO(format, ...) \
do { \
lxc_log_strerror_r; \
printf("%s - " format, ptr, ##__VA_ARGS__); \
} while (0)
extern
int
lxc_log_fd
;
extern
int
lxc_log_syslog
(
int
facility
);
...
...
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