mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-19 13:18:32 +00:00
aux/math: Port to u_logging.
This commit is contained in:
parent
ba1d966f9f
commit
55d6d57392
|
@ -98,11 +98,10 @@ math_solve_triangle(double w_total,
|
||||||
if (debug_get_bool_option_views()) {
|
if (debug_get_bool_option_views()) {
|
||||||
const double rad_to_deg = M_1_PI * 180.0;
|
const double rad_to_deg = M_1_PI * 180.0;
|
||||||
// comments are to force wrapping
|
// comments are to force wrapping
|
||||||
fprintf(stderr,
|
U_LOG_D("w=" METERS_FORMAT " theta=" DEG_FORMAT
|
||||||
"w=" METERS_FORMAT " theta=" DEG_FORMAT
|
|
||||||
" w1=" METERS_FORMAT " theta1=" DEG_FORMAT
|
" w1=" METERS_FORMAT " theta1=" DEG_FORMAT
|
||||||
" w2=" METERS_FORMAT " theta2=" DEG_FORMAT
|
" w2=" METERS_FORMAT " theta2=" DEG_FORMAT
|
||||||
" d=" METERS_FORMAT "\n",
|
" d=" METERS_FORMAT,
|
||||||
w_total, theta_total * rad_to_deg, //
|
w_total, theta_total * rad_to_deg, //
|
||||||
w_1, (theta_total - theta_2) * rad_to_deg, //
|
w_1, (theta_total - theta_2) * rad_to_deg, //
|
||||||
w_2, theta_2 * rad_to_deg, //
|
w_2, theta_2 * rad_to_deg, //
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
|
|
||||||
|
|
||||||
#include "util/u_misc.h"
|
#include "util/u_misc.h"
|
||||||
|
#include "util/u_logging.h"
|
||||||
|
|
||||||
#include "m_permutation.h"
|
#include "m_permutation.h"
|
||||||
|
|
||||||
|
@ -142,7 +143,7 @@ m_do_the_thing()
|
||||||
|
|
||||||
m_permutator_reset(&mp);
|
m_permutator_reset(&mp);
|
||||||
|
|
||||||
fprintf(stderr, "BLARG!\n");
|
U_LOG_D("BLARG!");
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue