[PATCH weston] Use __func__ in log message instead of hard coded function name
Scott Moreau
oreaus at gmail.com
Mon Feb 11 03:45:38 PST 2013
---
src/compositor.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/compositor.c b/src/compositor.c
index 8a2504b..994f814 100644
--- a/src/compositor.c
+++ b/src/compositor.c
@@ -327,7 +327,7 @@ weston_surface_to_global_float(struct weston_surface *surface,
if (fabsf(v.f[3]) < 1e-6) {
weston_log("warning: numerical instability in "
- "weston_surface_to_global(), divisor = %g\n",
+ "%s(), divisor = %g\n", __func__,
v.f[3]);
*x = 0;
*y = 0;
--
1.7.10.4
More information about the wayland-devel
mailing list