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
818a57fc
Unverified
Commit
818a57fc
authored
Mar 09, 2020
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tree-wide: improve logging
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
4110345b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
attach.c
src/lxc/attach.c
+1
-1
log.h
src/lxc/log.h
+4
-4
start.c
src/lxc/start.c
+0
-0
No files found.
src/lxc/attach.c
View file @
818a57fc
...
...
@@ -325,7 +325,7 @@ static int lxc_attach_set_environment(struct lxc_proc_context_info *init_ctx,
ret
=
putenv
(
"container=lxc"
);
if
(
ret
<
0
)
return
log_warn
(
-
1
,
errno
,
"Failed to set environment variable"
);
return
log_warn
(
-
1
,
"Failed to set environment variable"
);
/* Set container environment variables.*/
if
(
init_ctx
&&
init_ctx
->
container
&&
init_ctx
->
container
->
lxc_conf
)
{
...
...
src/lxc/log.h
View file @
818a57fc
...
...
@@ -510,10 +510,10 @@ __lxc_unused static inline void LXC_##LEVEL(struct lxc_log_locinfo* locinfo, \
__ret__; \
})
#define log_warn(__ret__,
__errno__, format, ...)
\
({
\
WARN(format, ##__VA_ARGS__);
\
__ret__;
\
#define log_warn(__ret__,
format, ...)
\
({ \
WARN(format, ##__VA_ARGS__); \
__ret__; \
})
#define log_debug_errno(__ret__, __errno__, format, ...) \
...
...
src/lxc/start.c
View file @
818a57fc
This diff is collapsed.
Click to expand it.
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