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
7fb4cab0
Unverified
Commit
7fb4cab0
authored
Nov 28, 2017
by
AustinReichert
Committed by
Christian Brauner
Dec 17, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tools/lxc_cgroup: remove internal logging
Signed-off-by:
AustinReichert
<
austinskyreichert@utexas.edu
>
parent
370f320c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
lxc_cgroup.c
src/lxc/tools/lxc_cgroup.c
+6
-8
No files found.
src/lxc/tools/lxc_cgroup.c
View file @
7fb4cab0
...
...
@@ -32,8 +32,6 @@
#include "log.h"
#include "arguments.h"
lxc_log_define
(
lxc_cgroup_ui
,
lxc
);
static
int
my_checker
(
const
struct
lxc_arguments
*
args
)
{
if
(
!
args
->
argc
)
{
...
...
@@ -95,26 +93,26 @@ int main(int argc, char *argv[])
if
(
my_args
.
rcfile
)
{
c
->
clear_config
(
c
);
if
(
!
c
->
load_config
(
c
,
my_args
.
rcfile
))
{
ERROR
(
"Failed to load rcfile
"
);
fprintf
(
stderr
,
"Failed to load rcfile
\n
"
);
lxc_container_put
(
c
);
exit
(
EXIT_FAILURE
);
}
c
->
configfile
=
strdup
(
my_args
.
rcfile
);
if
(
!
c
->
configfile
)
{
ERROR
(
"Out of memory setting new config filename
"
);
fprintf
(
stderr
,
"Out of memory setting new config filename
\n
"
);
lxc_container_put
(
c
);
exit
(
EXIT_FAILURE
);
}
}
if
(
!
c
->
may_control
(
c
))
{
ERROR
(
"Insufficent privileges to control %s:%s
"
,
my_args
.
lxcpath
[
0
],
my_args
.
name
);
fprintf
(
stderr
,
"Insufficent privileges to control %s:%s
\n
"
,
my_args
.
lxcpath
[
0
],
my_args
.
name
);
lxc_container_put
(
c
);
exit
(
EXIT_FAILURE
);
}
if
(
!
c
->
is_running
(
c
))
{
ERROR
(
"'%s:%s' is not running
"
,
my_args
.
lxcpath
[
0
],
my_args
.
name
);
fprintf
(
stderr
,
"'%s:%s' is not running
\n
"
,
my_args
.
lxcpath
[
0
],
my_args
.
name
);
lxc_container_put
(
c
);
exit
(
EXIT_FAILURE
);
}
...
...
@@ -122,7 +120,7 @@ int main(int argc, char *argv[])
if
((
my_args
.
argc
)
>
1
)
{
value
=
my_args
.
argv
[
1
];
if
(
!
c
->
set_cgroup_item
(
c
,
state_object
,
value
))
{
ERROR
(
"failed to assign '%s' value to '%s' for '%s'
"
,
fprintf
(
stderr
,
"failed to assign '%s' value to '%s' for '%s'
\n
"
,
value
,
state_object
,
my_args
.
name
);
lxc_container_put
(
c
);
exit
(
EXIT_FAILURE
);
...
...
@@ -131,7 +129,7 @@ int main(int argc, char *argv[])
char
buffer
[
MAXPATHLEN
];
int
ret
=
c
->
get_cgroup_item
(
c
,
state_object
,
buffer
,
MAXPATHLEN
);
if
(
ret
<
0
)
{
ERROR
(
"failed to retrieve value of '%s' for '%s:%s'
"
,
fprintf
(
stderr
,
"failed to retrieve value of '%s' for '%s:%s'
\n
"
,
state_object
,
my_args
.
lxcpath
[
0
],
my_args
.
name
);
lxc_container_put
(
c
);
exit
(
EXIT_FAILURE
);
...
...
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