diff options
author | 2009-05-14 15:52:03 +0200 | |
---|---|---|
committer | 2009-05-14 15:52:03 +0200 | |
commit | 3ab87b66af0fd1ac967683a75278ea39fe554a70 (patch) | |
tree | 87aace95bc0970735f6c0312d3c0ca3e7d051447 /src/lxc/lxc_start.c | |
parent | add error log in lxc_file_for_each_line (diff) | |
download | lxc-3ab87b66af0fd1ac967683a75278ea39fe554a70.tar.gz lxc-3ab87b66af0fd1ac967683a75278ea39fe554a70.tar.bz2 lxc-3ab87b66af0fd1ac967683a75278ea39fe554a70.zip |
remove fprintf to stderr and replace by ERROR call when needed
do it in all cli, except:
* the usage functions that will be removed by another patch
* the lxc_init that need more work
* the lxc_priority that is not used anymore
Signed-off-by: Michel Normand <normand@fr.ibm.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
Diffstat (limited to 'src/lxc/lxc_start.c')
-rw-r--r-- | src/lxc/lxc_start.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/lxc/lxc_start.c b/src/lxc/lxc_start.c index 84a3a5b..922732c 100644 --- a/src/lxc/lxc_start.c +++ b/src/lxc/lxc_start.c @@ -79,19 +79,20 @@ int main(int argc, char *argv[]) usage(argv[0]); if (tcgetattr(0, &tios)) { - ERROR("failed to get current terminal settings"); - fprintf(stderr, "%s\n", lxc_strerror(err)); + ERROR("failed to get current terminal settings : %s", + strerror(errno)); return 1; } err = lxc_start(name, args); if (err) { - fprintf(stderr, "%s\n", lxc_strerror(err)); + ERROR("failed to start : %s\n", lxc_strerror(err)); err = 1; } if (tcsetattr(0, TCSAFLUSH, &tios)) - SYSERROR("failed to restore terminal attributes"); + ERROR("failed to restore terminal settings : %s", + strerror(errno)); return err; } |