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
e2c8dbd8
Unverified
Commit
e2c8dbd8
authored
Apr 06, 2021
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
log: ensure we always return negative errno
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
1f0a3b6e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
log.h
src/lxc/log.h
+8
-8
No files found.
src/lxc/log.h
View file @
e2c8dbd8
...
@@ -565,7 +565,7 @@ __lxc_unused static inline void LXC_##LEVEL(struct lxc_log_locinfo* locinfo, \
...
@@ -565,7 +565,7 @@ __lxc_unused static inline void LXC_##LEVEL(struct lxc_log_locinfo* locinfo, \
#define syserror(format, ...) \
#define syserror(format, ...) \
({ \
({ \
SYSERROR(format, ##__VA_ARGS__); \
SYSERROR(format, ##__VA_ARGS__); \
(-
errno);
\
(-
labs(errno));
\
})
})
#define syserror_set(__ret__, format, ...) \
#define syserror_set(__ret__, format, ...) \
...
@@ -586,7 +586,7 @@ __lxc_unused static inline void LXC_##LEVEL(struct lxc_log_locinfo* locinfo, \
...
@@ -586,7 +586,7 @@ __lxc_unused static inline void LXC_##LEVEL(struct lxc_log_locinfo* locinfo, \
#define syswarn(format, ...) \
#define syswarn(format, ...) \
({ \
({ \
SYSWARN(format, ##__VA_ARGS__); \
SYSWARN(format, ##__VA_ARGS__); \
(-
errno);
\
(-
labs(errno));
\
})
})
#define syswarn_set(__ret__, format, ...) \
#define syswarn_set(__ret__, format, ...) \
...
@@ -605,16 +605,16 @@ __lxc_unused static inline void LXC_##LEVEL(struct lxc_log_locinfo* locinfo, \
...
@@ -605,16 +605,16 @@ __lxc_unused static inline void LXC_##LEVEL(struct lxc_log_locinfo* locinfo, \
})
})
#define sysinfo(format, ...) \
#define sysinfo(format, ...) \
({
\
({ \
SYSINFO(format, ##__VA_ARGS__); \
SYSINFO(format, ##__VA_ARGS__); \
(-
errno);
\
(-
labs(errno));
\
})
})
#define sysinfo_set(__ret__, format, ...) \
#define sysinfo_set(__ret__, format, ...)
\
({ \
({ \
typeof(__ret__) __internal_ret__ = (__ret__); \
typeof(__ret__) __internal_ret__ = (__ret__); \
errno = labs(__ret__); \
errno = labs(__ret__); \
SYSINFO(format, ##__VA_ARGS__); \
SYSINFO(format, ##__VA_ARGS__);
\
__internal_ret__; \
__internal_ret__; \
})
})
...
@@ -628,7 +628,7 @@ __lxc_unused static inline void LXC_##LEVEL(struct lxc_log_locinfo* locinfo, \
...
@@ -628,7 +628,7 @@ __lxc_unused static inline void LXC_##LEVEL(struct lxc_log_locinfo* locinfo, \
#define sysdebug(format, ...) \
#define sysdebug(format, ...) \
({ \
({ \
SYSDEBUG(format, ##__VA_ARGS__); \
SYSDEBUG(format, ##__VA_ARGS__); \
(-
errno);
\
(-
labs(errno));
\
})
})
#define sysdebug_set(__ret__, format, ...) \
#define sysdebug_set(__ret__, format, ...) \
...
@@ -649,7 +649,7 @@ __lxc_unused static inline void LXC_##LEVEL(struct lxc_log_locinfo* locinfo, \
...
@@ -649,7 +649,7 @@ __lxc_unused static inline void LXC_##LEVEL(struct lxc_log_locinfo* locinfo, \
#define systrace(format, ...) \
#define systrace(format, ...) \
({ \
({ \
SYSTRACE(format, ##__VA_ARGS__); \
SYSTRACE(format, ##__VA_ARGS__); \
(-
errno);
\
(-
labs(errno));
\
})
})
#define systrace_set(__ret__, format, ...) \
#define systrace_set(__ret__, format, ...) \
...
...
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