[PATCH weston] Use __func__ in log message instead of hard coded function name
Kristian Høgsberg
hoegsberg at gmail.com
Mon Feb 11 11:59:12 PST 2013
On Mon, Feb 11, 2013 at 04:45:38AM -0700, Scott Moreau wrote:
> ---
> src/compositor.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks.
Kristian
> 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
>
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel
More information about the wayland-devel
mailing list