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
95792a3b
Unverified
Commit
95792a3b
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_create: remove internal logging
Signed-off-by:
AustinReichert
<
austinskyreichert@utexas.edu
>
parent
97a465c1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
lxc_create.c
src/lxc/tools/lxc_create.c
+2
-5
No files found.
src/lxc/tools/lxc_create.c
View file @
95792a3b
...
@@ -33,8 +33,6 @@
...
@@ -33,8 +33,6 @@
#include "storage_utils.h"
#include "storage_utils.h"
#include "utils.h"
#include "utils.h"
lxc_log_define
(
lxc_create_ui
,
lxc
);
static
uint64_t
get_fssize
(
char
*
s
)
static
uint64_t
get_fssize
(
char
*
s
)
{
{
uint64_t
ret
;
uint64_t
ret
;
...
@@ -124,7 +122,7 @@ static void create_helpfn(const struct lxc_arguments *args)
...
@@ -124,7 +122,7 @@ static void create_helpfn(const struct lxc_arguments *args)
argv
[
2
]
=
NULL
;
argv
[
2
]
=
NULL
;
execv
(
path
,
argv
);
execv
(
path
,
argv
);
ERROR
(
"Error executing %s -h
"
,
path
);
fprintf
(
stderr
,
"Error executing %s -h
\n
"
,
path
);
exit
(
EXIT_FAILURE
);
exit
(
EXIT_FAILURE
);
}
}
...
@@ -323,12 +321,11 @@ int main(int argc, char *argv[])
...
@@ -323,12 +321,11 @@ int main(int argc, char *argv[])
flags
=
LXC_CREATE_QUIET
;
flags
=
LXC_CREATE_QUIET
;
if
(
!
c
->
create
(
c
,
my_args
.
template
,
my_args
.
bdevtype
,
&
spec
,
flags
,
&
argv
[
optind
]))
{
if
(
!
c
->
create
(
c
,
my_args
.
template
,
my_args
.
bdevtype
,
&
spec
,
flags
,
&
argv
[
optind
]))
{
ERROR
(
"Error creating container %s
"
,
c
->
name
);
fprintf
(
stderr
,
"Error creating container %s
\n
"
,
c
->
name
);
lxc_container_put
(
c
);
lxc_container_put
(
c
);
exit
(
EXIT_FAILURE
);
exit
(
EXIT_FAILURE
);
}
}
lxc_container_put
(
c
);
lxc_container_put
(
c
);
INFO
(
"container %s created"
,
c
->
name
);
exit
(
EXIT_SUCCESS
);
exit
(
EXIT_SUCCESS
);
}
}
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