Commit 2af16f85f105ccb5a49f6a9decd3ff04b84819e3

Authored by Ilya Yanok
Committed by Marek Vasut
1 parent fd06028df8

ehci-hcd: change debug() to printf() in case of errors

Printing message could be useful if something goes really wrong.

Signed-off-by: Ilya Yanok <ilya.yanok@cogentembedded.com>

Showing 1 changed file with 3 additions and 3 deletions Side-by-side Diff

drivers/usb/host/ehci-hcd.c
... ... @@ -196,7 +196,7 @@
196 196 }
197 197  
198 198 if (idx == 5) {
199   - debug("out of buffer pointers (%u bytes left)\n", sz);
  199 + printf("out of buffer pointers (%u bytes left)\n", sz);
200 200 return -1;
201 201 }
202 202  
... ... @@ -281,7 +281,7 @@
281 281 (0 << 15) | (0 << 12) | (3 << 10) | (2 << 8) | (0x80 << 0);
282 282 qtd[qtd_counter].qt_token = cpu_to_hc32(token);
283 283 if (ehci_td_buffer(&qtd[qtd_counter], req, sizeof(*req)) != 0) {
284   - debug("unable construct SETUP td\n");
  284 + printf("unable construct SETUP td\n");
285 285 goto fail;
286 286 }
287 287 /* Update previous qTD! */
... ... @@ -310,7 +310,7 @@
310 310 ((usb_pipein(pipe) ? 1 : 0) << 8) | (0x80 << 0);
311 311 qtd[qtd_counter].qt_token = cpu_to_hc32(token);
312 312 if (ehci_td_buffer(&qtd[qtd_counter], buffer, length) != 0) {
313   - debug("unable construct DATA td\n");
  313 + printf("unable construct DATA td\n");
314 314 goto fail;
315 315 }
316 316 /* Update previous qTD! */