The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

st/gui+steamvr_drv: Port to u_logging.

authored by

Lubosz Sarnecki and committed by
Jakob Bornecrantz
12a3a243 521daac0

+25 -24
+1 -1
src/xrt/state_trackers/gui/gui_scene_calibrate.c
··· 128 128 cs->settings->calibration_path); 129 129 130 130 char *str = cJSON_Print(root); 131 - fprintf(stderr, "%s\n", str); 131 + U_LOG_D("%s", str); 132 132 cJSON_Delete(root); 133 133 134 134 FILE *config_file =
+22 -21
src/xrt/state_trackers/gui/gui_scene_remote.c
··· 10 10 #include "xrt/xrt_config_drivers.h" 11 11 12 12 #include "util/u_misc.h" 13 + #include "util/u_logging.h" 13 14 14 15 #include "math/m_api.h" 15 16 ··· 182 183 } 183 184 184 185 if (igButton("Dump left", zero_dims)) { 185 - fprintf(stderr, 186 - "d->left.pose.position.x = %ff;\n" 187 - "d->left.pose.position.y = %ff;\n" 188 - "d->left.pose.position.z = %ff;\n" 189 - "d->left.pose.orientation.x = %ff;\n" 190 - "d->left.pose.orientation.y = %ff;\n" 191 - "d->left.pose.orientation.z = %ff;\n" 192 - "d->left.pose.orientation.w = %ff;\n" 193 - "d->left.linear_velocity.x = %ff;\n" 194 - "d->left.linear_velocity.y = %ff;\n" 195 - "d->left.linear_velocity.z = %ff;\n" 196 - "d->left.angular_velocity.x = %ff;\n" 197 - "d->left.angular_velocity.y = %ff;\n" 198 - "d->left.angular_velocity.z = %ff;\n", 199 - d->left.pose.position.x, d->left.pose.position.y, 200 - d->left.pose.position.z, d->left.pose.orientation.x, 201 - d->left.pose.orientation.y, d->left.pose.orientation.z, 202 - d->left.pose.orientation.w, d->left.linear_velocity.x, 203 - d->left.linear_velocity.y, d->left.linear_velocity.z, 204 - d->left.angular_velocity.x, d->left.angular_velocity.y, 205 - d->left.angular_velocity.z); 186 + U_LOG_RAW( 187 + "d->left.pose.position.x = %ff;\n" 188 + "d->left.pose.position.y = %ff;\n" 189 + "d->left.pose.position.z = %ff;\n" 190 + "d->left.pose.orientation.x = %ff;\n" 191 + "d->left.pose.orientation.y = %ff;\n" 192 + "d->left.pose.orientation.z = %ff;\n" 193 + "d->left.pose.orientation.w = %ff;\n" 194 + "d->left.linear_velocity.x = %ff;\n" 195 + "d->left.linear_velocity.y = %ff;\n" 196 + "d->left.linear_velocity.z = %ff;\n" 197 + "d->left.angular_velocity.x = %ff;\n" 198 + "d->left.angular_velocity.y = %ff;\n" 199 + "d->left.angular_velocity.z = %ff;\n", 200 + d->left.pose.position.x, d->left.pose.position.y, 201 + d->left.pose.position.z, d->left.pose.orientation.x, 202 + d->left.pose.orientation.y, d->left.pose.orientation.z, 203 + d->left.pose.orientation.w, d->left.linear_velocity.x, 204 + d->left.linear_velocity.y, d->left.linear_velocity.z, 205 + d->left.angular_velocity.x, d->left.angular_velocity.y, 206 + d->left.angular_velocity.z); 206 207 } 207 208 } 208 209
+2 -2
src/xrt/state_trackers/steamvr_drv/ovrd_driver.cpp
··· 728 728 handle, state, 0); 729 729 // ovrd_log("Update %s: %d\n", 730 730 // m_controls[i].steamvr_control_path, state); 731 - // printf("Update %s: %d\n", 731 + // U_LOG_D("Update %s: %d", 732 732 // m_controls[i].steamvr_control_path, 733 733 // state); 734 734 } ··· 754 754 // ovrd_log("Update %s: %f\n", 755 755 // m_controls[i].steamvr_control_path, 756 756 // state->x); 757 - // printf("Update %s: %f\n", 757 + // U_LOG_D("Update %s: %f", 758 758 // m_controls[i].steamvr_control_path, 759 759 // value); 760 760 }