[PATCH 2/4] screen-share: Add missing '\n' in weston_log usage

Chris Michael cp.michael at samsung.com
Thu Oct 1 07:51:30 PDT 2015


Signed-off-by: Chris Michael <cp.michael at samsung.com>
---
 src/screen-share.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/screen-share.c b/src/screen-share.c
index e5f91ea..d961c89 100644
--- a/src/screen-share.c
+++ b/src/screen-share.c
@@ -438,13 +438,13 @@ shared_output_get_shm_buffer(struct shared_output *so)
 
 	fd = os_create_anonymous_file(height * stride);
 	if (fd < 0) {
-		weston_log("os_create_anonymous_file: %m");
+		weston_log("os_create_anonymous_file: %m\n");
 		return NULL;
 	}
 
 	data = mmap(NULL, height * stride, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
 	if (data == MAP_FAILED) {
-		weston_log("mmap: %m");
+		weston_log("mmap: %m\n");
 		goto out_close;
 	}
 
@@ -914,7 +914,7 @@ shared_output_create(struct weston_output *output, int parent_fd)
 	so->parent.surface =
 		wl_compositor_create_surface(so->parent.compositor);
 	if (!so->parent.surface) {
-		weston_log("Screen share failed: %m");
+		weston_log("Screen share failed: %m\n");
 		goto err_display;
 	}
 
@@ -924,7 +924,7 @@ shared_output_create(struct weston_output *output, int parent_fd)
 							      so->parent.output,
 							      output->current_mode->refresh);
 	if (!so->parent.mode_feedback) {
-		weston_log("Screen share failed: %m");
+		weston_log("Screen share failed: %m\n");
 		goto err_display;
 	}
 	_wl_fullscreen_shell_mode_feedback_add_listener(so->parent.mode_feedback,
@@ -938,7 +938,7 @@ shared_output_create(struct weston_output *output, int parent_fd)
 		wl_event_loop_add_fd(loop, epoll_fd, WL_EVENT_READABLE,
 				     shared_output_handle_event, so);
 	if (!so->event_source) {
-		weston_log("Screen share failed: %m");
+		weston_log("Screen share failed: %m\n");
 		goto err_display;
 	}
 
-- 
2.5.3



More information about the wayland-devel mailing list