Use __func__ in log message instead of hard coded function name
This commit is contained in:
committed by
Kristian Høgsberg
parent
d1c426eef7
commit
088c62e267
+1
-1
@@ -327,7 +327,7 @@ weston_surface_to_global_float(struct weston_surface *surface,
|
|||||||
|
|
||||||
if (fabsf(v.f[3]) < 1e-6) {
|
if (fabsf(v.f[3]) < 1e-6) {
|
||||||
weston_log("warning: numerical instability in "
|
weston_log("warning: numerical instability in "
|
||||||
"weston_surface_to_global(), divisor = %g\n",
|
"%s(), divisor = %g\n", __func__,
|
||||||
v.f[3]);
|
v.f[3]);
|
||||||
*x = 0;
|
*x = 0;
|
||||||
*y = 0;
|
*y = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user