Better logging Change-Id: I4d04436c9c73f80df833a8f338df8e43ea6250ae
diff --git a/tflite/libusb.cc b/tflite/libusb.cc index 0445998..5ffc587 100644 --- a/tflite/libusb.cc +++ b/tflite/libusb.cc
@@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +#include <cstdio> #include <iostream> #include <emscripten.h> @@ -29,6 +30,7 @@ #define LIBUSB_LOG(...) \ do { \ fprintf(stdout, __VA_ARGS__); \ + fprintf(stdout, "\n"); \ fflush(stdout); \ } while (false) #else // LIBUSB_ENABLE_LOG @@ -279,8 +281,6 @@ } int LIBUSB_CALL libusb_handle_events(libusb_context *ctx) { - LIBUSB_LOG("libusb_handle_events"); - while (true) { if (auto item = ctx->completed_transfers.Pop(25/*ms*/)) { auto* transfer = item.value();