mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-06 07:06:10 +00:00
st/gui+steamvr_drv: Port to u_logging.
This commit is contained in:
parent
521daac012
commit
12a3a24315
|
@ -128,7 +128,7 @@ save_calibration(struct calibration_scene *cs)
|
||||||
cs->settings->calibration_path);
|
cs->settings->calibration_path);
|
||||||
|
|
||||||
char *str = cJSON_Print(root);
|
char *str = cJSON_Print(root);
|
||||||
fprintf(stderr, "%s\n", str);
|
U_LOG_D("%s", str);
|
||||||
cJSON_Delete(root);
|
cJSON_Delete(root);
|
||||||
|
|
||||||
FILE *config_file =
|
FILE *config_file =
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
#include "xrt/xrt_config_drivers.h"
|
#include "xrt/xrt_config_drivers.h"
|
||||||
|
|
||||||
#include "util/u_misc.h"
|
#include "util/u_misc.h"
|
||||||
|
#include "util/u_logging.h"
|
||||||
|
|
||||||
#include "math/m_api.h"
|
#include "math/m_api.h"
|
||||||
|
|
||||||
|
@ -182,7 +183,7 @@ render_cheat_menu(struct gui_remote *gr, struct gui_program *p)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (igButton("Dump left", zero_dims)) {
|
if (igButton("Dump left", zero_dims)) {
|
||||||
fprintf(stderr,
|
U_LOG_RAW(
|
||||||
"d->left.pose.position.x = %ff;\n"
|
"d->left.pose.position.x = %ff;\n"
|
||||||
"d->left.pose.position.y = %ff;\n"
|
"d->left.pose.position.y = %ff;\n"
|
||||||
"d->left.pose.position.z = %ff;\n"
|
"d->left.pose.position.z = %ff;\n"
|
||||||
|
|
|
@ -728,7 +728,7 @@ public:
|
||||||
handle, state, 0);
|
handle, state, 0);
|
||||||
// ovrd_log("Update %s: %d\n",
|
// ovrd_log("Update %s: %d\n",
|
||||||
// m_controls[i].steamvr_control_path, state);
|
// m_controls[i].steamvr_control_path, state);
|
||||||
// printf("Update %s: %d\n",
|
// U_LOG_D("Update %s: %d",
|
||||||
// m_controls[i].steamvr_control_path,
|
// m_controls[i].steamvr_control_path,
|
||||||
// state);
|
// state);
|
||||||
}
|
}
|
||||||
|
@ -754,7 +754,7 @@ public:
|
||||||
// ovrd_log("Update %s: %f\n",
|
// ovrd_log("Update %s: %f\n",
|
||||||
// m_controls[i].steamvr_control_path,
|
// m_controls[i].steamvr_control_path,
|
||||||
// state->x);
|
// state->x);
|
||||||
// printf("Update %s: %f\n",
|
// U_LOG_D("Update %s: %f",
|
||||||
// m_controls[i].steamvr_control_path,
|
// m_controls[i].steamvr_control_path,
|
||||||
// value);
|
// value);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue