xrt: Port commented printfs to u_logging.

This commit is contained in:
Lubosz Sarnecki 2020-12-17 12:16:20 +01:00 committed by Jakob Bornecrantz
parent 0302a47e6f
commit 853458ed37
3 changed files with 3 additions and 4 deletions

View file

@ -132,8 +132,7 @@ typedef void (*u_var_elm_cb)(struct u_var_info *info, void *);
* // On create
* u_var_add_root((void*)psmv, "PS Move Controller", true);
* u_var_add_rgb_u8((void*)psmv, &psmv->led_color, "LED");
* u_var_add_bool((void*)psmv, &psmv->print_spew, "Spew");
* u_var_add_bool((void*)psmv, &psmv->print_debug, "Debug");
* u_var_add_log_level(psmv, &psmv->log_level, "Log level");
*
* // On destroy, only need to destroy the root object.
* u_var_remove_root((void*)psmv);

View file

@ -1197,7 +1197,7 @@ public:
// z *= +1.0f;
// }
// else {
// //printf("coding error\n");
// //U_LOG_E("coding error");
// }
// float r = NORM(w, x, w, z);
// w /= r;

View file

@ -646,7 +646,7 @@ read_calibration_data(struct psvr_device *psvr)
int *data = (int*)&psvr->calibration.data[0];
for (size_t i = 0; i < (sizeof(psvr->calibration.data) / 4); i++) {
int v = data[i];
fprintf(stderr, "%i %f\n", v, *(float*)&v);
U_LOG_E("%i %f", v, *(float*)&v);
}
#endif