[PATCH weston 3/6] compositor-drm: fix weston_log format errors

Pekka Paalanen ppaalanen at gmail.com
Mon Aug 6 04:57:05 PDT 2012


compositor-drm.c: In function 'drm_output_set_cursor':
compositor-drm.c:754:4: warning: too few arguments for format
compositor-drm.c:759:4: warning: too few arguments for format

Signed-off-by: Pekka Paalanen <ppaalanen at gmail.com>
---
 src/compositor-drm.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/compositor-drm.c b/src/compositor-drm.c
index 33bffae..d35588c 100644
--- a/src/compositor-drm.c
+++ b/src/compositor-drm.c
@@ -751,12 +751,12 @@ drm_output_set_cursor(struct drm_output *output)
 			       es->geometry.width * 4);
 
 		if (gbm_bo_write(bo, buf, sizeof buf) < 0)
-			weston_log("failed update cursor: %n\n");
+			weston_log("failed update cursor: %m\n");
 
 		handle = gbm_bo_get_handle(bo).s32;
 		if (drmModeSetCursor(c->drm.fd,
 				     output->crtc_id, handle, 64, 64))
-			weston_log("failed to set cursor: %n\n");
+			weston_log("failed to set cursor: %m\n");
 	}
 
 	x = es->geometry.x - output->base.x;
-- 
1.7.8.6



More information about the wayland-devel mailing list