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
192f5e7b
Commit
192f5e7b
authored
Jun 15, 2017
by
Serge Hallyn
Committed by
GitHub
Jun 15, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1627 from brauner/2017-06-15/fix_new_logging_api
tree-wide: priority -> level
parents
74f04141
4b73005c
Hide whitespace changes
Inline
Side-by-side
Showing
27 changed files
with
84 additions
and
84 deletions
+84
-84
conf.c
src/lxc/conf.c
+3
-3
confile.c
src/lxc/confile.c
+2
-2
log.c
src/lxc/log.c
+18
-18
log.h
src/lxc/log.h
+38
-38
lxc_monitord.c
src/lxc/lxc_monitord.c
+1
-1
lxccontainer.h
src/lxc/lxccontainer.h
+1
-1
seccomp.c
src/lxc/seccomp.c
+1
-1
lxc_attach.c
src/lxc/tools/lxc_attach.c
+1
-1
lxc_autostart.c
src/lxc/tools/lxc_autostart.c
+1
-1
lxc_cgroup.c
src/lxc/tools/lxc_cgroup.c
+1
-1
lxc_checkpoint.c
src/lxc/tools/lxc_checkpoint.c
+1
-1
lxc_console.c
src/lxc/tools/lxc_console.c
+1
-1
lxc_copy.c
src/lxc/tools/lxc_copy.c
+1
-1
lxc_create.c
src/lxc/tools/lxc_create.c
+1
-1
lxc_destroy.c
src/lxc/tools/lxc_destroy.c
+1
-1
lxc_device.c
src/lxc/tools/lxc_device.c
+1
-1
lxc_execute.c
src/lxc/tools/lxc_execute.c
+1
-1
lxc_freeze.c
src/lxc/tools/lxc_freeze.c
+1
-1
lxc_info.c
src/lxc/tools/lxc_info.c
+1
-1
lxc_init.c
src/lxc/tools/lxc_init.c
+1
-1
lxc_ls.c
src/lxc/tools/lxc_ls.c
+1
-1
lxc_monitor.c
src/lxc/tools/lxc_monitor.c
+1
-1
lxc_snapshot.c
src/lxc/tools/lxc_snapshot.c
+1
-1
lxc_start.c
src/lxc/tools/lxc_start.c
+1
-1
lxc_stop.c
src/lxc/tools/lxc_stop.c
+1
-1
lxc_unfreeze.c
src/lxc/tools/lxc_unfreeze.c
+1
-1
lxc_wait.c
src/lxc/tools/lxc_wait.c
+1
-1
No files found.
src/lxc/conf.c
View file @
192f5e7b
...
...
@@ -2621,7 +2621,7 @@ struct lxc_conf *lxc_conf_init(void)
}
memset
(
new
,
0
,
sizeof
(
*
new
));
new
->
loglevel
=
LXC_LOG_
PRIORITY
_NOTSET
;
new
->
loglevel
=
LXC_LOG_
LEVEL
_NOTSET
;
new
->
personality
=
-
1
;
new
->
autodev
=
1
;
new
->
console
.
log_path
=
NULL
;
...
...
@@ -4844,8 +4844,8 @@ int userns_exec_1(struct lxc_conf *conf, int (*fn)(void *), void *data,
/* idmap will now keep track of that memory. */
host_gid_map
=
NULL
;
if
(
lxc_log_get_level
()
==
LXC_LOG_
PRIORITY
_TRACE
||
conf
->
loglevel
==
LXC_LOG_
PRIORITY
_TRACE
)
{
if
(
lxc_log_get_level
()
==
LXC_LOG_
LEVEL
_TRACE
||
conf
->
loglevel
==
LXC_LOG_
LEVEL
_TRACE
)
{
lxc_list_for_each
(
it
,
idmap
)
{
map
=
it
->
elem
;
TRACE
(
"establishing %cid mapping for
\"
%d
\"
in new "
...
...
src/lxc/confile.c
View file @
192f5e7b
...
...
@@ -1663,7 +1663,7 @@ static int set_config_loglevel(const char *key, const char *value,
/* Set config value to default. */
if
(
config_value_empty
(
value
))
{
lxc_conf
->
loglevel
=
LXC_LOG_
PRIORITY
_NOTSET
;
lxc_conf
->
loglevel
=
LXC_LOG_
LEVEL
_NOTSET
;
return
0
;
}
...
...
@@ -3932,7 +3932,7 @@ static inline int clr_config_idmaps(const char *key, struct lxc_conf *c)
static
inline
int
clr_config_loglevel
(
const
char
*
key
,
struct
lxc_conf
*
c
)
{
c
->
loglevel
=
LXC_LOG_
PRIORITY
_NOTSET
;
c
->
loglevel
=
LXC_LOG_
LEVEL
_NOTSET
;
return
0
;
}
...
...
src/lxc/log.c
View file @
192f5e7b
...
...
@@ -67,23 +67,23 @@ lxc_log_define(lxc_log, lxc);
static
int
lxc_log_priority_to_syslog
(
int
priority
)
{
switch
(
priority
)
{
case
LXC_LOG_
PRIORITY
_FATAL
:
case
LXC_LOG_
LEVEL
_FATAL
:
return
LOG_EMERG
;
case
LXC_LOG_
PRIORITY
_ALERT
:
case
LXC_LOG_
LEVEL
_ALERT
:
return
LOG_ALERT
;
case
LXC_LOG_
PRIORITY
_CRIT
:
case
LXC_LOG_
LEVEL
_CRIT
:
return
LOG_CRIT
;
case
LXC_LOG_
PRIORITY
_ERROR
:
case
LXC_LOG_
LEVEL
_ERROR
:
return
LOG_ERR
;
case
LXC_LOG_
PRIORITY
_WARN
:
case
LXC_LOG_
LEVEL
_WARN
:
return
LOG_WARNING
;
case
LXC_LOG_
PRIORITY
_NOTICE
:
case
LXC_LOG_
PRIORITY
_NOTSET
:
case
LXC_LOG_
LEVEL
_NOTICE
:
case
LXC_LOG_
LEVEL
_NOTSET
:
return
LOG_NOTICE
;
case
LXC_LOG_
PRIORITY
_INFO
:
case
LXC_LOG_
LEVEL
_INFO
:
return
LOG_INFO
;
case
LXC_LOG_
PRIORITY
_TRACE
:
case
LXC_LOG_
PRIORITY
_DEBUG
:
case
LXC_LOG_
LEVEL
_TRACE
:
case
LXC_LOG_
LEVEL
_DEBUG
:
return
LOG_DEBUG
;
}
...
...
@@ -130,7 +130,7 @@ static int log_append_syslog(const struct lxc_log_appender *appender,
static
int
log_append_stderr
(
const
struct
lxc_log_appender
*
appender
,
struct
lxc_log_event
*
event
)
{
if
(
event
->
priority
<
LXC_LOG_
PRIORITY
_ERROR
)
if
(
event
->
priority
<
LXC_LOG_
LEVEL
_ERROR
)
return
0
;
fprintf
(
stderr
,
"%s: %s%s"
,
log_prefix
,
log_vmname
?
log_vmname
:
""
,
log_vmname
?
": "
:
""
);
...
...
@@ -325,14 +325,14 @@ static struct lxc_log_appender log_appender_logfile = {
static
struct
lxc_log_category
log_root
=
{
.
name
=
"root"
,
.
priority
=
LXC_LOG_
PRIORITY
_ERROR
,
.
priority
=
LXC_LOG_
LEVEL
_ERROR
,
.
appender
=
NULL
,
.
parent
=
NULL
,
};
struct
lxc_log_category
lxc_log_category_lxc
=
{
.
name
=
"lxc"
,
.
priority
=
LXC_LOG_
PRIORITY
_ERROR
,
.
priority
=
LXC_LOG_
LEVEL
_ERROR
,
.
appender
=
&
log_appender_logfile
,
.
parent
=
&
log_root
};
...
...
@@ -546,7 +546,7 @@ extern void lxc_log_enable_syslog(void)
*/
extern
int
lxc_log_init
(
struct
lxc_log
*
log
)
{
int
lxc_priority
=
LXC_LOG_
PRIORITY
_ERROR
;
int
lxc_priority
=
LXC_LOG_
LEVEL
_ERROR
;
int
ret
;
if
(
lxc_log_fd
!=
-
1
)
{
...
...
@@ -554,8 +554,8 @@ extern int lxc_log_init(struct lxc_log *log)
return
0
;
}
if
(
log
->
priority
)
lxc_priority
=
lxc_log_priority_to_int
(
log
->
priority
);
if
(
log
->
level
)
lxc_priority
=
lxc_log_priority_to_int
(
log
->
level
);
if
(
!
lxc_loglevel_specified
)
{
lxc_log_category_lxc
.
priority
=
lxc_priority
;
...
...
@@ -620,7 +620,7 @@ extern int lxc_log_init(struct lxc_log *log)
*/
extern
int
lxc_log_set_level
(
int
*
dest
,
int
level
)
{
if
(
level
<
0
||
level
>=
LXC_LOG_
PRIORITY
_NOTSET
)
{
if
(
level
<
0
||
level
>=
LXC_LOG_
LEVEL
_NOTSET
)
{
ERROR
(
"invalid log priority %d"
,
level
);
return
-
1
;
}
...
...
@@ -636,7 +636,7 @@ extern int lxc_log_get_level(void)
extern
bool
lxc_log_has_valid_level
(
void
)
{
int
log_level
=
lxc_log_get_level
();
if
(
log_level
<
0
||
log_level
>=
LXC_LOG_
PRIORITY
_NOTSET
)
if
(
log_level
<
0
||
log_level
>=
LXC_LOG_
LEVEL
_NOTSET
)
return
false
;
return
true
;
}
...
...
src/lxc/log.h
View file @
192f5e7b
...
...
@@ -58,16 +58,16 @@
/* predefined lxc log priorities. */
enum
lxc_loglevel
{
LXC_LOG_
PRIORITY
_TRACE
,
LXC_LOG_
PRIORITY
_DEBUG
,
LXC_LOG_
PRIORITY
_INFO
,
LXC_LOG_
PRIORITY
_NOTICE
,
LXC_LOG_
PRIORITY
_WARN
,
LXC_LOG_
PRIORITY
_ERROR
,
LXC_LOG_
PRIORITY
_CRIT
,
LXC_LOG_
PRIORITY
_ALERT
,
LXC_LOG_
PRIORITY
_FATAL
,
LXC_LOG_
PRIORITY
_NOTSET
,
LXC_LOG_
LEVEL
_TRACE
,
LXC_LOG_
LEVEL
_DEBUG
,
LXC_LOG_
LEVEL
_INFO
,
LXC_LOG_
LEVEL
_NOTICE
,
LXC_LOG_
LEVEL
_WARN
,
LXC_LOG_
LEVEL
_ERROR
,
LXC_LOG_
LEVEL
_CRIT
,
LXC_LOG_
LEVEL
_ALERT
,
LXC_LOG_
LEVEL
_FATAL
,
LXC_LOG_
LEVEL
_NOTSET
,
};
/* location information of the logging event */
...
...
@@ -121,14 +121,14 @@ static inline int
lxc_log_priority_is_enabled
(
const
struct
lxc_log_category
*
category
,
int
priority
)
{
while
(
category
->
priority
==
LXC_LOG_
PRIORITY
_NOTSET
&&
while
(
category
->
priority
==
LXC_LOG_
LEVEL
_NOTSET
&&
category
->
parent
)
category
=
category
->
parent
;
int
cmp_prio
=
category
->
priority
;
#ifndef NO_LXC_CONF
if
(
!
lxc_log_use_global_fd
&&
current_config
&&
current_config
->
loglevel
!=
LXC_LOG_
PRIORITY
_NOTSET
)
current_config
->
loglevel
!=
LXC_LOG_
LEVEL
_NOTSET
)
cmp_prio
=
current_config
->
loglevel
;
#endif
...
...
@@ -141,15 +141,15 @@ lxc_log_priority_is_enabled(const struct lxc_log_category* category,
static
inline
const
char
*
lxc_log_priority_to_string
(
int
priority
)
{
switch
(
priority
)
{
case
LXC_LOG_
PRIORITY
_TRACE
:
return
"TRACE"
;
case
LXC_LOG_
PRIORITY
_DEBUG
:
return
"DEBUG"
;
case
LXC_LOG_
PRIORITY
_INFO
:
return
"INFO"
;
case
LXC_LOG_
PRIORITY
_NOTICE
:
return
"NOTICE"
;
case
LXC_LOG_
PRIORITY
_WARN
:
return
"WARN"
;
case
LXC_LOG_
PRIORITY
_ERROR
:
return
"ERROR"
;
case
LXC_LOG_
PRIORITY
_CRIT
:
return
"CRIT"
;
case
LXC_LOG_
PRIORITY
_ALERT
:
return
"ALERT"
;
case
LXC_LOG_
PRIORITY
_FATAL
:
return
"FATAL"
;
case
LXC_LOG_
LEVEL
_TRACE
:
return
"TRACE"
;
case
LXC_LOG_
LEVEL
_DEBUG
:
return
"DEBUG"
;
case
LXC_LOG_
LEVEL
_INFO
:
return
"INFO"
;
case
LXC_LOG_
LEVEL
_NOTICE
:
return
"NOTICE"
;
case
LXC_LOG_
LEVEL
_WARN
:
return
"WARN"
;
case
LXC_LOG_
LEVEL
_ERROR
:
return
"ERROR"
;
case
LXC_LOG_
LEVEL
_CRIT
:
return
"CRIT"
;
case
LXC_LOG_
LEVEL
_ALERT
:
return
"ALERT"
;
case
LXC_LOG_
LEVEL
_FATAL
:
return
"FATAL"
;
default:
return
"NOTSET"
;
}
...
...
@@ -177,17 +177,17 @@ static inline const char* lxc_syslog_priority_to_string(int priority)
*/
static
inline
int
lxc_log_priority_to_int
(
const
char
*
name
)
{
if
(
!
strcasecmp
(
"TRACE"
,
name
))
return
LXC_LOG_
PRIORITY
_TRACE
;
if
(
!
strcasecmp
(
"DEBUG"
,
name
))
return
LXC_LOG_
PRIORITY
_DEBUG
;
if
(
!
strcasecmp
(
"INFO"
,
name
))
return
LXC_LOG_
PRIORITY
_INFO
;
if
(
!
strcasecmp
(
"NOTICE"
,
name
))
return
LXC_LOG_
PRIORITY
_NOTICE
;
if
(
!
strcasecmp
(
"WARN"
,
name
))
return
LXC_LOG_
PRIORITY
_WARN
;
if
(
!
strcasecmp
(
"ERROR"
,
name
))
return
LXC_LOG_
PRIORITY
_ERROR
;
if
(
!
strcasecmp
(
"CRIT"
,
name
))
return
LXC_LOG_
PRIORITY
_CRIT
;
if
(
!
strcasecmp
(
"ALERT"
,
name
))
return
LXC_LOG_
PRIORITY
_ALERT
;
if
(
!
strcasecmp
(
"FATAL"
,
name
))
return
LXC_LOG_
PRIORITY
_FATAL
;
return
LXC_LOG_
PRIORITY
_NOTSET
;
if
(
!
strcasecmp
(
"TRACE"
,
name
))
return
LXC_LOG_
LEVEL
_TRACE
;
if
(
!
strcasecmp
(
"DEBUG"
,
name
))
return
LXC_LOG_
LEVEL
_DEBUG
;
if
(
!
strcasecmp
(
"INFO"
,
name
))
return
LXC_LOG_
LEVEL
_INFO
;
if
(
!
strcasecmp
(
"NOTICE"
,
name
))
return
LXC_LOG_
LEVEL
_NOTICE
;
if
(
!
strcasecmp
(
"WARN"
,
name
))
return
LXC_LOG_
LEVEL
_WARN
;
if
(
!
strcasecmp
(
"ERROR"
,
name
))
return
LXC_LOG_
LEVEL
_ERROR
;
if
(
!
strcasecmp
(
"CRIT"
,
name
))
return
LXC_LOG_
LEVEL
_CRIT
;
if
(
!
strcasecmp
(
"ALERT"
,
name
))
return
LXC_LOG_
LEVEL
_ALERT
;
if
(
!
strcasecmp
(
"FATAL"
,
name
))
return
LXC_LOG_
LEVEL
_FATAL
;
return
LXC_LOG_
LEVEL
_NOTSET
;
}
static
inline
int
lxc_syslog_priority_to_int
(
const
char
*
name
)
...
...
@@ -234,19 +234,19 @@ __lxc_log(const struct lxc_log_category* category,
/*
* Helper macro to define log functions.
*/
#define lxc_log_priority_define(acategory,
PRIORITY
) \
#define lxc_log_priority_define(acategory,
LEVEL
) \
\
ATTR_UNUSED static inline void LXC_##
PRIORITY
(struct lxc_log_locinfo *, \
ATTR_UNUSED static inline void LXC_##
LEVEL
(struct lxc_log_locinfo *, \
const char *, ...) __attribute__ ((format (printf, 2, 3))); \
\
ATTR_UNUSED static inline void LXC_##
PRIORITY
(struct lxc_log_locinfo* locinfo, \
ATTR_UNUSED static inline void LXC_##
LEVEL
(struct lxc_log_locinfo* locinfo, \
const char* format, ...) \
{ \
if (lxc_log_priority_is_enabled(acategory, \
LXC_LOG_
PRIORITY_##PRIORITY
)) { \
LXC_LOG_
LEVEL_##LEVEL
)) { \
struct lxc_log_event evt = { \
.category = (acategory)->name, \
.priority = LXC_LOG_
PRIORITY_##PRIORITY
, \
.priority = LXC_LOG_
LEVEL_##LEVEL
, \
.fmt = format, \
.locinfo = locinfo \
}; \
...
...
@@ -271,7 +271,7 @@ ATTR_UNUSED static inline void LXC_##PRIORITY(struct lxc_log_locinfo* locinfo, \
extern struct lxc_log_category lxc_log_category_##parent; \
struct lxc_log_category lxc_log_category_##name = { \
#name, \
LXC_LOG_
PRIORITY
_NOTSET, \
LXC_LOG_
LEVEL
_NOTSET, \
NULL, \
&lxc_log_category_##parent \
};
...
...
src/lxc/lxc_monitord.c
View file @
192f5e7b
...
...
@@ -368,7 +368,7 @@ int main(int argc, char *argv[])
log
.
name
=
NULL
;
log
.
file
=
logpath
;
log
.
priority
=
"DEBUG"
;
log
.
level
=
"DEBUG"
;
log
.
prefix
=
"lxc-monitord"
;
log
.
quiet
=
0
;
log
.
lxcpath
=
lxcpath
;
...
...
src/lxc/lxccontainer.h
View file @
192f5e7b
...
...
@@ -1021,7 +1021,7 @@ struct lxc_log {
const
char
*
name
;
const
char
*
lxcpath
;
const
char
*
file
;
const
char
*
priority
;
const
char
*
level
;
const
char
*
prefix
;
bool
quiet
;
};
...
...
src/lxc/seccomp.c
View file @
192f5e7b
...
...
@@ -795,7 +795,7 @@ int lxc_seccomp_load(struct lxc_conf *conf)
/* After load seccomp filter into the kernel successfully, export the current seccomp
* filter to log file */
#if HAVE_SCMP_FILTER_CTX
if
((
lxc_log_get_level
()
<=
LXC_LOG_
PRIORITY_TRACE
||
conf
->
loglevel
<=
LXC_LOG_PRIORITY
_TRACE
)
&&
if
((
lxc_log_get_level
()
<=
LXC_LOG_
LEVEL_TRACE
||
conf
->
loglevel
<=
LXC_LOG_LEVEL
_TRACE
)
&&
lxc_log_fd
>=
0
)
{
ret
=
seccomp_export_pfc
(
conf
->
seccomp_ctx
,
lxc_log_fd
);
/* Just give an warning when export error */
...
...
src/lxc/tools/lxc_attach.c
View file @
192f5e7b
...
...
@@ -389,7 +389,7 @@ int main(int argc, char *argv[])
log
.
name
=
my_args
.
name
;
log
.
file
=
my_args
.
log_file
;
log
.
priority
=
my_args
.
log_priority
;
log
.
level
=
my_args
.
log_priority
;
log
.
prefix
=
my_args
.
progname
;
log
.
quiet
=
my_args
.
quiet
;
log
.
lxcpath
=
my_args
.
lxcpath
[
0
];
...
...
src/lxc/tools/lxc_autostart.c
View file @
192f5e7b
...
...
@@ -359,7 +359,7 @@ int main(int argc, char *argv[])
log
.
name
=
my_args
.
name
;
log
.
file
=
my_args
.
log_file
;
log
.
priority
=
my_args
.
log_priority
;
log
.
level
=
my_args
.
log_priority
;
log
.
prefix
=
my_args
.
progname
;
log
.
quiet
=
my_args
.
quiet
;
log
.
lxcpath
=
my_args
.
lxcpath
[
0
];
...
...
src/lxc/tools/lxc_cgroup.c
View file @
192f5e7b
...
...
@@ -77,7 +77,7 @@ int main(int argc, char *argv[])
log
.
name
=
my_args
.
name
;
log
.
file
=
my_args
.
log_file
;
log
.
priority
=
my_args
.
log_priority
;
log
.
level
=
my_args
.
log_priority
;
log
.
prefix
=
my_args
.
progname
;
log
.
quiet
=
my_args
.
quiet
;
log
.
lxcpath
=
my_args
.
lxcpath
[
0
];
...
...
src/lxc/tools/lxc_checkpoint.c
View file @
192f5e7b
...
...
@@ -245,7 +245,7 @@ int main(int argc, char *argv[])
log
.
name
=
my_args
.
name
;
log
.
file
=
my_args
.
log_file
;
log
.
priority
=
my_args
.
log_priority
;
log
.
level
=
my_args
.
log_priority
;
log
.
prefix
=
my_args
.
progname
;
log
.
quiet
=
my_args
.
quiet
;
log
.
lxcpath
=
my_args
.
lxcpath
[
0
];
...
...
src/lxc/tools/lxc_console.c
View file @
192f5e7b
...
...
@@ -109,7 +109,7 @@ int main(int argc, char *argv[])
log
.
name
=
my_args
.
name
;
log
.
file
=
my_args
.
log_file
;
log
.
priority
=
my_args
.
log_priority
;
log
.
level
=
my_args
.
log_priority
;
log
.
prefix
=
my_args
.
progname
;
log
.
quiet
=
my_args
.
quiet
;
log
.
lxcpath
=
my_args
.
lxcpath
[
0
];
...
...
src/lxc/tools/lxc_copy.c
View file @
192f5e7b
...
...
@@ -181,7 +181,7 @@ int main(int argc, char *argv[])
log
.
name
=
my_args
.
name
;
log
.
file
=
my_args
.
log_file
;
log
.
priority
=
my_args
.
log_priority
;
log
.
level
=
my_args
.
log_priority
;
log
.
prefix
=
my_args
.
progname
;
log
.
quiet
=
my_args
.
quiet
;
log
.
lxcpath
=
my_args
.
lxcpath
[
0
];
...
...
src/lxc/tools/lxc_create.c
View file @
192f5e7b
...
...
@@ -219,7 +219,7 @@ int main(int argc, char *argv[])
log
.
name
=
my_args
.
name
;
log
.
file
=
my_args
.
log_file
;
log
.
priority
=
my_args
.
log_priority
;
log
.
level
=
my_args
.
log_priority
;
log
.
prefix
=
my_args
.
progname
;
log
.
quiet
=
my_args
.
quiet
;
log
.
lxcpath
=
my_args
.
lxcpath
[
0
];
...
...
src/lxc/tools/lxc_destroy.c
View file @
192f5e7b
...
...
@@ -78,7 +78,7 @@ int main(int argc, char *argv[])
log
.
name
=
my_args
.
name
;
log
.
file
=
my_args
.
log_file
;
log
.
priority
=
my_args
.
log_priority
;
log
.
level
=
my_args
.
log_priority
;
log
.
prefix
=
my_args
.
progname
;
log
.
quiet
=
my_args
.
quiet
;
log
.
lxcpath
=
my_args
.
lxcpath
[
0
];
...
...
src/lxc/tools/lxc_device.c
View file @
192f5e7b
...
...
@@ -118,7 +118,7 @@ int main(int argc, char *argv[])
log
.
name
=
my_args
.
name
;
log
.
file
=
my_args
.
log_file
;
log
.
priority
=
my_args
.
log_priority
;
log
.
level
=
my_args
.
log_priority
;
log
.
prefix
=
my_args
.
progname
;
log
.
quiet
=
my_args
.
quiet
;
log
.
lxcpath
=
my_args
.
lxcpath
[
0
];
...
...
src/lxc/tools/lxc_execute.c
View file @
192f5e7b
...
...
@@ -120,7 +120,7 @@ int main(int argc, char *argv[])
log
.
name
=
my_args
.
name
;
log
.
file
=
my_args
.
log_file
;
log
.
priority
=
my_args
.
log_priority
;
log
.
level
=
my_args
.
log_priority
;
log
.
prefix
=
my_args
.
progname
;
log
.
quiet
=
my_args
.
quiet
;
log
.
lxcpath
=
my_args
.
lxcpath
[
0
];
...
...
src/lxc/tools/lxc_freeze.c
View file @
192f5e7b
...
...
@@ -67,7 +67,7 @@ int main(int argc, char *argv[])
log
.
name
=
my_args
.
name
;
log
.
file
=
my_args
.
log_file
;
log
.
priority
=
my_args
.
log_priority
;
log
.
level
=
my_args
.
log_priority
;
log
.
prefix
=
my_args
.
progname
;
log
.
quiet
=
my_args
.
quiet
;
log
.
lxcpath
=
my_args
.
lxcpath
[
0
];
...
...
src/lxc/tools/lxc_info.c
View file @
192f5e7b
...
...
@@ -404,7 +404,7 @@ int main(int argc, char *argv[])
log
.
name
=
my_args
.
name
;
log
.
file
=
my_args
.
log_file
;
log
.
priority
=
my_args
.
log_priority
;
log
.
level
=
my_args
.
log_priority
;
log
.
prefix
=
my_args
.
progname
;
log
.
quiet
=
my_args
.
quiet
;
log
.
lxcpath
=
my_args
.
lxcpath
[
0
];
...
...
src/lxc/tools/lxc_init.c
View file @
192f5e7b
...
...
@@ -108,7 +108,7 @@ int main(int argc, char *argv[])
log
.
name
=
name
;
log
.
file
=
name
?
NULL
:
"none"
;
log
.
priority
=
logpriority
;
log
.
level
=
logpriority
;
log
.
prefix
=
basename
(
argv
[
0
]);
log
.
quiet
=
quiet
;
log
.
lxcpath
=
lxcpath
;
...
...
src/lxc/tools/lxc_ls.c
View file @
192f5e7b
...
...
@@ -221,7 +221,7 @@ int main(int argc, char *argv[])
*/
log
.
name
=
NULL
;
log
.
file
=
my_args
.
log_file
;
log
.
priority
=
my_args
.
log_priority
;
log
.
level
=
my_args
.
log_priority
;
log
.
prefix
=
my_args
.
progname
;
log
.
quiet
=
my_args
.
quiet
;
log
.
lxcpath
=
my_args
.
lxcpath
[
0
];
...
...
src/lxc/tools/lxc_monitor.c
View file @
192f5e7b
...
...
@@ -104,7 +104,7 @@ int main(int argc, char *argv[])
log
.
name
=
my_args
.
name
;
log
.
file
=
my_args
.
log_file
;
log
.
priority
=
my_args
.
log_priority
;
log
.
level
=
my_args
.
log_priority
;
log
.
prefix
=
my_args
.
progname
;
log
.
quiet
=
my_args
.
quiet
;
log
.
lxcpath
=
my_args
.
lxcpath
[
0
];
...
...
src/lxc/tools/lxc_snapshot.c
View file @
192f5e7b
...
...
@@ -92,7 +92,7 @@ int main(int argc, char *argv[])
log
.
name
=
my_args
.
name
;
log
.
file
=
my_args
.
log_file
;
log
.
priority
=
my_args
.
log_priority
;
log
.
level
=
my_args
.
log_priority
;
log
.
prefix
=
my_args
.
progname
;
log
.
quiet
=
my_args
.
quiet
;
log
.
lxcpath
=
my_args
.
lxcpath
[
0
];
...
...
src/lxc/tools/lxc_start.c
View file @
192f5e7b
...
...
@@ -229,7 +229,7 @@ int main(int argc, char *argv[])
log
.
name
=
my_args
.
name
;
log
.
file
=
my_args
.
log_file
;
log
.
priority
=
my_args
.
log_priority
;
log
.
level
=
my_args
.
log_priority
;
log
.
prefix
=
my_args
.
progname
;
log
.
quiet
=
my_args
.
quiet
;
log
.
lxcpath
=
my_args
.
lxcpath
[
0
];
...
...
src/lxc/tools/lxc_stop.c
View file @
192f5e7b
...
...
@@ -164,7 +164,7 @@ int main(int argc, char *argv[])
log
.
name
=
my_args
.
name
;
log
.
file
=
my_args
.
log_file
;
log
.
priority
=
my_args
.
log_priority
;
log
.
level
=
my_args
.
log_priority
;
log
.
prefix
=
my_args
.
progname
;
log
.
quiet
=
my_args
.
quiet
;
log
.
lxcpath
=
my_args
.
lxcpath
[
0
];
...
...
src/lxc/tools/lxc_unfreeze.c
View file @
192f5e7b
...
...
@@ -65,7 +65,7 @@ int main(int argc, char *argv[])
log
.
name
=
my_args
.
name
;
log
.
file
=
my_args
.
log_file
;
log
.
priority
=
my_args
.
log_priority
;
log
.
level
=
my_args
.
log_priority
;
log
.
prefix
=
my_args
.
progname
;
log
.
quiet
=
my_args
.
quiet
;
log
.
lxcpath
=
my_args
.
lxcpath
[
0
];
...
...
src/lxc/tools/lxc_wait.c
View file @
192f5e7b
...
...
@@ -93,7 +93,7 @@ int main(int argc, char *argv[])
log
.
name
=
my_args
.
name
;
log
.
file
=
my_args
.
log_file
;
log
.
priority
=
my_args
.
log_priority
;
log
.
level
=
my_args
.
log_priority
;
log
.
prefix
=
my_args
.
progname
;
log
.
quiet
=
my_args
.
quiet
;
log
.
lxcpath
=
my_args
.
lxcpath
[
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