Use __func__ in log message instead of hard coded function name

This commit is contained in:
Scott Moreau 2013-02-11 04:45:38 -07:00 committed by Kristian Høgsberg
parent d1c426eef7
commit 088c62e267

View file

@ -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;