From 72217a7e1bb1a2a61c365b87bea8a7de85df9b0b Mon Sep 17 00:00:00 2001 From: choisjin80 Date: Wed, 15 May 2013 15:53:39 +0900 Subject: [PATCH] ecs: minor fixes Signed-off-by: choisjin80 --- tizen/src/ecs.c | 2 ++ tizen/src/hw/maru_virtio_evdi.c | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tizen/src/ecs.c b/tizen/src/ecs.c index 7d8530f0a2..0dfda5ecbd 100755 --- a/tizen/src/ecs.c +++ b/tizen/src/ecs.c @@ -161,9 +161,11 @@ void send_to_client(int fd, const char *str) LOG("string is too long: overflow buffer."); return; } +#ifndef _WIN32 if (c == '\n') { outbuf[outbuf_index++] = '\r'; } +#endif outbuf[outbuf_index++] = c; if (c == '\0') { break; diff --git a/tizen/src/hw/maru_virtio_evdi.c b/tizen/src/hw/maru_virtio_evdi.c index 8653b9bea4..f8f44f144d 100755 --- a/tizen/src/hw/maru_virtio_evdi.c +++ b/tizen/src/hw/maru_virtio_evdi.c @@ -167,8 +167,7 @@ static void flush_evdi_recv_queue(void) memcpy(elem.in_sg[0].iov_base, &msginfo->info, sizeof(struct msg_info)); - //INFO(">> send to guest count = %d, use = %d, msg = %s, iov_len = %d \n", - ++g_cnt, msginfo->info.use, msginfo->info.buf, elem.in_sg[0].iov_len); + //INFO(">> send to guest count = %d, use = %d, msg = %s, iov_len = %d \n", ++g_cnt, msginfo->info.use, msginfo->info.buf, elem.in_sg[0].iov_len); virtqueue_push(vio_evdi->rvq, &elem, sizeof(msg_info)); virtio_notify(&vio_evdi->vdev, vio_evdi->rvq); -- 2.34.1