mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Remove superfluous new lines from messages
I noticed some debug messages are printed with an empty lines after
them. This patch removes these empty lines from all invocations of the
following macros:
VIR_DEBUG
VIR_DEBUG0
VIR_ERROR
VIR_ERROR0
VIR_INFO
VIR_WARN
VIR_WARN0
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
This commit is contained in:
@@ -73,7 +73,7 @@ int vshRunConsole(const char *tty) {
|
||||
|
||||
/* We do not want this to become the controlling TTY */
|
||||
if ((ttyfd = open(tty, O_NOCTTY | O_RDWR)) < 0) {
|
||||
VIR_ERROR(_("unable to open tty %s: %s\n"),
|
||||
VIR_ERROR(_("unable to open tty %s: %s"),
|
||||
tty, strerror(errno));
|
||||
return -1;
|
||||
}
|
||||
@@ -84,7 +84,7 @@ int vshRunConsole(const char *tty) {
|
||||
also ensure Ctrl-C, etc is blocked, and misc
|
||||
other bits */
|
||||
if (tcgetattr(STDIN_FILENO, &ttyattr) < 0) {
|
||||
VIR_ERROR(_("unable to get tty attributes: %s\n"),
|
||||
VIR_ERROR(_("unable to get tty attributes: %s"),
|
||||
strerror(errno));
|
||||
goto closetty;
|
||||
}
|
||||
@@ -93,7 +93,7 @@ int vshRunConsole(const char *tty) {
|
||||
cfmakeraw(&rawattr);
|
||||
|
||||
if (tcsetattr(STDIN_FILENO, TCSAFLUSH, &rawattr) < 0) {
|
||||
VIR_ERROR(_("unable to set tty attributes: %s\n"),
|
||||
VIR_ERROR(_("unable to set tty attributes: %s"),
|
||||
strerror(errno));
|
||||
goto closetty;
|
||||
}
|
||||
@@ -128,7 +128,7 @@ int vshRunConsole(const char *tty) {
|
||||
if (errno == EINTR || errno == EAGAIN)
|
||||
continue;
|
||||
|
||||
VIR_ERROR(_("failure waiting for I/O: %s\n"), strerror(errno));
|
||||
VIR_ERROR(_("failure waiting for I/O: %s"), strerror(errno));
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
@@ -142,7 +142,7 @@ int vshRunConsole(const char *tty) {
|
||||
int got, sent = 0, destfd;
|
||||
|
||||
if ((got = read(fds[i].fd, buf, sizeof(buf))) < 0) {
|
||||
VIR_ERROR(_("failure reading input: %s\n"),
|
||||
VIR_ERROR(_("failure reading input: %s"),
|
||||
strerror(errno));
|
||||
goto cleanup;
|
||||
}
|
||||
@@ -164,7 +164,7 @@ int vshRunConsole(const char *tty) {
|
||||
int done;
|
||||
if ((done = safewrite(destfd, buf + sent, got - sent))
|
||||
<= 0) {
|
||||
VIR_ERROR(_("failure writing output: %s\n"),
|
||||
VIR_ERROR(_("failure writing output: %s"),
|
||||
strerror(errno));
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user