From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: [PATCH 1/3] tools/xenconsoled: Newline on 'Logfile Opened' messages Date: Tue, 22 Jul 2014 17:17:14 +0100 Message-ID: <1406045836-9955-2-git-send-email-andrew.cooper3@citrix.com> References: <1406045836-9955-1-git-send-email-andrew.cooper3@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1406045836-9955-1-git-send-email-andrew.cooper3@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Xen-devel Cc: Andrew Cooper , Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org Signed-off-by: Andrew Cooper CC: Ian Campbell CC: Ian Jackson --- tools/console/daemon/io.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/console/daemon/io.c b/tools/console/daemon/io.c index 46719a8..313b256 100644 --- a/tools/console/daemon/io.c +++ b/tools/console/daemon/io.c @@ -276,8 +276,8 @@ static int create_hv_log(void) dolog(LOG_ERR, "Failed to open log %s: %d (%s)", logfile, errno, strerror(errno)); if (fd != -1 && log_time_hv) { - if (write_with_timestamp(fd, "Logfile Opened", - strlen("Logfile Opened"), + if (write_with_timestamp(fd, "Logfile Opened\n", + strlen("Logfile Opened\n"), &log_time_hv_needts) < 0) { dolog(LOG_ERR, "Failed to log opening timestamp " "in %s: %d (%s)", logfile, errno, @@ -322,8 +322,8 @@ static int create_domain_log(struct domain *dom) dolog(LOG_ERR, "Failed to open log %s: %d (%s)", logfile, errno, strerror(errno)); if (fd != -1 && log_time_guest) { - if (write_with_timestamp(fd, "Logfile Opened", - strlen("Logfile Opened"), + if (write_with_timestamp(fd, "Logfile Opened\n", + strlen("Logfile Opened\n"), &log_time_guest_needts) < 0) { dolog(LOG_ERR, "Failed to log opening timestamp " "in %s: %d (%s)", logfile, errno, -- 1.7.10.4