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
ac2cecc4
Unverified
Commit
ac2cecc4
authored
Jul 01, 2018
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tree-wide: remove unneeded log prefixes
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
9b937486
Hide whitespace changes
Inline
Side-by-side
Showing
31 changed files
with
31 additions
and
37 deletions
+31
-37
af_unix.c
src/lxc/af_unix.c
+1
-1
attach.c
src/lxc/attach.c
+1
-1
caps.c
src/lxc/caps.c
+1
-1
cgfsng.c
src/lxc/cgroups/cgfsng.c
+1
-1
cgroup.c
src/lxc/cgroups/cgroup.c
+1
-1
commands.c
src/lxc/commands.c
+1
-1
commands_utils.c
src/lxc/commands_utils.c
+1
-1
conf.c
src/lxc/conf.c
+1
-1
confile.c
src/lxc/confile.c
+1
-1
confile_utils.c
src/lxc/confile_utils.c
+1
-1
criu.c
src/lxc/criu.c
+1
-1
error.c
src/lxc/error.c
+1
-1
execute.c
src/lxc/execute.c
+1
-1
freezer.c
src/lxc/freezer.c
+1
-1
initutils.c
src/lxc/initutils.c
+1
-1
log.c
src/lxc/log.c
+1
-1
apparmor.c
src/lxc/lsm/apparmor.c
+1
-1
lsm.c
src/lxc/lsm/lsm.c
+1
-1
selinux.c
src/lxc/lsm/selinux.c
+1
-1
lxccontainer.c
src/lxc/lxccontainer.c
+1
-1
lxclock.c
src/lxc/lxclock.c
+1
-1
monitor.c
src/lxc/monitor.c
+1
-1
namespace.c
src/lxc/namespace.c
+1
-1
network.c
src/lxc/network.c
+1
-1
parse.c
src/lxc/parse.c
+1
-1
seccomp.c
src/lxc/seccomp.c
+1
-1
start.c
src/lxc/start.c
+1
-1
state.c
src/lxc/state.c
+1
-1
sync.c
src/lxc/sync.c
+1
-1
arguments.c
src/lxc/tools/arguments.c
+1
-7
utils.c
src/lxc/utils.c
+1
-1
No files found.
src/lxc/af_unix.c
View file @
ac2cecc4
...
...
@@ -40,7 +40,7 @@
#include "include/strlcpy.h"
#endif
lxc_log_define
(
lxc_
af_unix
,
lxc
);
lxc_log_define
(
af_unix
,
lxc
);
int
lxc_abstract_unix_open
(
const
char
*
path
,
int
type
,
int
flags
)
{
...
...
src/lxc/attach.c
View file @
ac2cecc4
...
...
@@ -87,7 +87,7 @@
#define MS_SLAVE (1 << 19)
#endif
lxc_log_define
(
lxc_
attach
,
lxc
);
lxc_log_define
(
attach
,
lxc
);
/* /proc/pid-to-str/status\0 = (5 + 21 + 7 + 1) */
#define __PROC_STATUS_LEN (5 + (LXC_NUMSTRLEN64) + 7 + 1)
...
...
src/lxc/caps.c
View file @
ac2cecc4
...
...
@@ -34,7 +34,7 @@
#include "caps.h"
#include "log.h"
lxc_log_define
(
lxc_
caps
,
lxc
);
lxc_log_define
(
caps
,
lxc
);
#if HAVE_LIBCAP
...
...
src/lxc/cgroups/cgfsng.c
View file @
ac2cecc4
...
...
@@ -66,7 +66,7 @@
#include "include/strlcat.h"
#endif
lxc_log_define
(
lxc_cgfsng
,
lxc
);
lxc_log_define
(
cgfsng
,
cgroup
);
static
void
free_string_list
(
char
**
clist
)
{
...
...
src/lxc/cgroups/cgroup.c
View file @
ac2cecc4
...
...
@@ -30,7 +30,7 @@
#include "log.h"
#include "start.h"
lxc_log_define
(
lxc_
cgroup
,
lxc
);
lxc_log_define
(
cgroup
,
lxc
);
extern
struct
cgroup_ops
*
cgfsng_ops_init
(
void
);
...
...
src/lxc/commands.c
View file @
ac2cecc4
...
...
@@ -76,7 +76,7 @@
* container.
*/
lxc_log_define
(
lxc_
commands
,
lxc
);
lxc_log_define
(
commands
,
lxc
);
static
const
char
*
lxc_cmd_str
(
lxc_cmd_t
cmd
)
{
...
...
src/lxc/commands_utils.c
View file @
ac2cecc4
...
...
@@ -38,7 +38,7 @@
#include "state.h"
#include "utils.h"
lxc_log_define
(
lxc_
commands_utils
,
lxc
);
lxc_log_define
(
commands_utils
,
lxc
);
int
lxc_cmd_sock_rcv_state
(
int
state_client_fd
,
int
timeout
)
{
...
...
src/lxc/conf.c
View file @
ac2cecc4
...
...
@@ -118,7 +118,7 @@
#define MS_LAZYTIME (1<<25)
#endif
lxc_log_define
(
lxc_
conf
,
lxc
);
lxc_log_define
(
conf
,
lxc
);
/* The lxc_conf of the container currently being worked on in an API call.
* This is used in the error calls.
...
...
src/lxc/confile.c
View file @
ac2cecc4
...
...
@@ -73,7 +73,7 @@
#include "include/strlcat.h"
#endif
lxc_log_define
(
lxc_
confile
,
lxc
);
lxc_log_define
(
confile
,
lxc
);
#define lxc_config_define(name) \
static int set_config_##name(const char *, const char *, \
...
...
src/lxc/confile_utils.c
View file @
ac2cecc4
...
...
@@ -40,7 +40,7 @@
#include "include/strlcpy.h"
#endif
lxc_log_define
(
lxc_
confile_utils
,
lxc
);
lxc_log_define
(
confile_utils
,
lxc
);
int
parse_idmaps
(
const
char
*
idmap
,
char
*
type
,
unsigned
long
*
nsid
,
unsigned
long
*
hostid
,
unsigned
long
*
range
)
...
...
src/lxc/criu.c
View file @
ac2cecc4
...
...
@@ -63,7 +63,7 @@
#define CRIU_IN_FLIGHT_SUPPORT "2.4"
#define CRIU_EXTERNAL_NOT_VETH "2.8"
lxc_log_define
(
lxc_
criu
,
lxc
);
lxc_log_define
(
criu
,
lxc
);
struct
criu_opts
{
/* the thing to hook to stdout and stderr for logging */
...
...
src/lxc/error.c
View file @
ac2cecc4
...
...
@@ -28,7 +28,7 @@
#include "error.h"
#include "log.h"
lxc_log_define
(
lxc_
error
,
lxc
);
lxc_log_define
(
error
,
lxc
);
/*---------------------------------------------------------------------------*/
/* lxc_error_set_and_log
...
...
src/lxc/execute.c
View file @
ac2cecc4
...
...
@@ -34,7 +34,7 @@
#include "start.h"
#include "utils.h"
lxc_log_define
(
lxc_execute
,
lxc_
start
);
lxc_log_define
(
execute
,
start
);
static
int
execute_start
(
struct
lxc_handler
*
handler
,
void
*
data
)
{
...
...
src/lxc/freezer.c
View file @
ac2cecc4
...
...
@@ -40,7 +40,7 @@
#include "parse.h"
#include "state.h"
lxc_log_define
(
lxc_
freezer
,
lxc
);
lxc_log_define
(
freezer
,
lxc
);
static
int
do_freeze_thaw
(
bool
freeze
,
const
char
*
name
,
const
char
*
lxcpath
)
{
...
...
src/lxc/initutils.c
View file @
ac2cecc4
...
...
@@ -31,7 +31,7 @@
#include "include/strlcpy.h"
#endif
lxc_log_define
(
lxc_
initutils
,
lxc
);
lxc_log_define
(
initutils
,
lxc
);
static
char
*
copy_global_config_value
(
char
*
p
)
{
...
...
src/lxc/log.c
View file @
ac2cecc4
...
...
@@ -66,7 +66,7 @@ static char log_prefix[LXC_LOG_PREFIX_SIZE] = "lxc";
static
char
*
log_fname
=
NULL
;
static
char
*
log_vmname
=
NULL
;
lxc_log_define
(
l
xc_l
og
,
lxc
);
lxc_log_define
(
log
,
lxc
);
static
int
lxc_log_priority_to_syslog
(
int
priority
)
{
...
...
src/lxc/lsm/apparmor.c
View file @
ac2cecc4
...
...
@@ -33,7 +33,7 @@
#include "conf.h"
#include "utils.h"
lxc_log_define
(
lxc_apparmor
,
lxc
);
lxc_log_define
(
apparmor
,
lsm
);
/* set by lsm_apparmor_drv_init if true */
static
int
aa_enabled
=
0
;
...
...
src/lxc/lsm/lsm.c
View file @
ac2cecc4
...
...
@@ -32,7 +32,7 @@
#include "log.h"
#include "lsm.h"
lxc_log_define
(
l
xc_l
sm
,
lxc
);
lxc_log_define
(
lsm
,
lxc
);
static
struct
lsm_drv
*
drv
=
NULL
;
...
...
src/lxc/lsm/selinux.c
View file @
ac2cecc4
...
...
@@ -36,7 +36,7 @@
#define DEFAULT_LABEL "unconfined_t"
lxc_log_define
(
lxc_lsm_selinux
,
lxc
);
lxc_log_define
(
selinux
,
lsm
);
/*
* selinux_process_label_get: Get SELinux context of a process
...
...
src/lxc/lxccontainer.c
View file @
ac2cecc4
...
...
@@ -104,7 +104,7 @@ static int faccessat(int __fd, const char *__file, int __type, int __flag)
}
#endif
lxc_log_define
(
lxc
_
container
,
lxc
);
lxc_log_define
(
lxccontainer
,
lxc
);
static
bool
do_lxcapi_destroy
(
struct
lxc_container
*
c
);
static
const
char
*
lxcapi_get_config_path
(
struct
lxc_container
*
c
);
...
...
src/lxc/lxclock.c
View file @
ac2cecc4
...
...
@@ -40,7 +40,7 @@
#define MAX_STACKDEPTH 25
lxc_log_define
(
lxc
_
lock
,
lxc
);
lxc_log_define
(
lxclock
,
lxc
);
#ifdef MUTEX_DEBUGGING
static
pthread_mutex_t
thread_mutex
=
PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP
;
...
...
src/lxc/monitor.c
View file @
ac2cecc4
...
...
@@ -54,7 +54,7 @@
#include "include/strlcpy.h"
#endif
lxc_log_define
(
lxc_
monitor
,
lxc
);
lxc_log_define
(
monitor
,
lxc
);
/* routines used by monitor publishers (containers) */
int
lxc_monitor_fifo_name
(
const
char
*
lxcpath
,
char
*
fifo_path
,
size_t
fifo_path_sz
,
...
...
src/lxc/namespace.c
View file @
ac2cecc4
...
...
@@ -37,7 +37,7 @@
#include "namespace.h"
#include "utils.h"
lxc_log_define
(
lxc_
namespace
,
lxc
);
lxc_log_define
(
namespace
,
lxc
);
struct
clone_arg
{
int
(
*
fn
)(
void
*
);
...
...
src/lxc/network.c
View file @
ac2cecc4
...
...
@@ -95,7 +95,7 @@
#define IFLA_MACVLAN_MODE 1
#endif
lxc_log_define
(
lxc_
network
,
lxc
);
lxc_log_define
(
network
,
lxc
);
typedef
int
(
*
instantiate_cb
)(
struct
lxc_handler
*
,
struct
lxc_netdev
*
);
...
...
src/lxc/parse.c
View file @
ac2cecc4
...
...
@@ -35,7 +35,7 @@
#include "utils.h"
#include "log.h"
lxc_log_define
(
lxc_
parse
,
lxc
);
lxc_log_define
(
parse
,
lxc
);
void
*
lxc_strmmap
(
void
*
addr
,
size_t
length
,
int
prot
,
int
flags
,
int
fd
,
off_t
offset
)
...
...
src/lxc/seccomp.c
View file @
ac2cecc4
...
...
@@ -42,7 +42,7 @@
#define MIPS_ARCH_N64 lxc_seccomp_arch_mips64
#endif
lxc_log_define
(
lxc_
seccomp
,
lxc
);
lxc_log_define
(
seccomp
,
lxc
);
static
int
parse_config_v1
(
FILE
*
f
,
char
*
line
,
size_t
*
line_bufsz
,
struct
lxc_conf
*
conf
)
{
...
...
src/lxc/start.c
View file @
ac2cecc4
...
...
@@ -94,7 +94,7 @@
#include "include/strlcpy.h"
#endif
lxc_log_define
(
lxc_
start
,
lxc
);
lxc_log_define
(
start
,
lxc
);
extern
void
mod_all_rdeps
(
struct
lxc_container
*
c
,
bool
inc
);
static
bool
do_destroy_container
(
struct
lxc_handler
*
handler
);
...
...
src/lxc/state.c
View file @
ac2cecc4
...
...
@@ -44,7 +44,7 @@
#include "monitor.h"
#include "start.h"
lxc_log_define
(
lxc_
state
,
lxc
);
lxc_log_define
(
state
,
lxc
);
static
const
char
*
const
strstate
[]
=
{
"STOPPED"
,
"STARTING"
,
"RUNNING"
,
"STOPPING"
,
...
...
src/lxc/sync.c
View file @
ac2cecc4
...
...
@@ -32,7 +32,7 @@
#include "log.h"
#include "start.h"
lxc_log_define
(
lxc_
sync
,
lxc
);
lxc_log_define
(
sync
,
lxc
);
static
int
__sync_wait
(
int
fd
,
int
sequence
)
{
...
...
src/lxc/tools/arguments.c
View file @
ac2cecc4
...
...
@@ -38,6 +38,7 @@
#include "arguments.h"
#include "namespace.h"
#include "initutils.h"
static
int
build_shortopts
(
const
struct
option
*
a_options
,
char
*
a_shortopts
,
size_t
a_size
)
...
...
@@ -186,13 +187,6 @@ static int lxc_arguments_lxcpath_add(struct lxc_arguments *args,
return
0
;
}
void
remove_trailing_slashes
(
char
*
p
)
{
int
l
=
strlen
(
p
);
while
(
--
l
>=
0
&&
(
p
[
l
]
==
'/'
||
p
[
l
]
==
'\n'
))
p
[
l
]
=
'\0'
;
}
extern
int
lxc_arguments_parse
(
struct
lxc_arguments
*
args
,
int
argc
,
char
*
const
argv
[])
{
...
...
src/lxc/utils.c
View file @
ac2cecc4
...
...
@@ -67,7 +67,7 @@
#define O_NOFOLLOW 00400000
#endif
lxc_log_define
(
lxc_
utils
,
lxc
);
lxc_log_define
(
utils
,
lxc
);
/*
* if path is btrfs, tries to remove it and any subvolumes beneath 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