From 55d6d57392d1d4a92c2e6b9f7030c415426b0eec Mon Sep 17 00:00:00 2001 From: Lubosz Sarnecki Date: Fri, 18 Dec 2020 14:17:55 +0100 Subject: [PATCH] aux/math: Port to u_logging. --- src/xrt/auxiliary/math/m_optics.c | 5 ++--- src/xrt/auxiliary/math/m_permutation.c | 3 ++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/xrt/auxiliary/math/m_optics.c b/src/xrt/auxiliary/math/m_optics.c index 651d17cb0..f3052675d 100644 --- a/src/xrt/auxiliary/math/m_optics.c +++ b/src/xrt/auxiliary/math/m_optics.c @@ -98,11 +98,10 @@ math_solve_triangle(double w_total, if (debug_get_bool_option_views()) { const double rad_to_deg = M_1_PI * 180.0; // comments are to force wrapping - fprintf(stderr, - "w=" METERS_FORMAT " theta=" DEG_FORMAT + U_LOG_D("w=" METERS_FORMAT " theta=" DEG_FORMAT " w1=" METERS_FORMAT " theta1=" DEG_FORMAT " w2=" METERS_FORMAT " theta2=" DEG_FORMAT - " d=" METERS_FORMAT "\n", + " d=" METERS_FORMAT, w_total, theta_total * rad_to_deg, // w_1, (theta_total - theta_2) * rad_to_deg, // w_2, theta_2 * rad_to_deg, // diff --git a/src/xrt/auxiliary/math/m_permutation.c b/src/xrt/auxiliary/math/m_permutation.c index 8de6c940f..5c34fcbd6 100644 --- a/src/xrt/auxiliary/math/m_permutation.c +++ b/src/xrt/auxiliary/math/m_permutation.c @@ -9,6 +9,7 @@ #include "util/u_misc.h" +#include "util/u_logging.h" #include "m_permutation.h" @@ -142,7 +143,7 @@ m_do_the_thing() m_permutator_reset(&mp); - fprintf(stderr, "BLARG!\n"); + U_LOG_D("BLARG!"); } #endif