aux/math: Port to u_logging.

This commit is contained in:
Lubosz Sarnecki 2020-12-18 14:17:55 +01:00 committed by Jakob Bornecrantz
parent ba1d966f9f
commit 55d6d57392
2 changed files with 4 additions and 4 deletions

View file

@ -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, //

View file

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