]> git.sur5r.net Git - u-boot/commitdiff
USB: ULPI: increase error case verbosity
authorIgor Grinberg <grinberg@compulab.co.il>
Mon, 12 Dec 2011 10:08:34 +0000 (12:08 +0200)
committerRemy Bohmer <linux@bohmer.net>
Fri, 16 Dec 2011 20:05:46 +0000 (21:05 +0100)
Add the argument value to the error message.

Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
Acked-by: Simon Glass <sjg@chromium.org>
drivers/usb/ulpi/ulpi.c

index f3f293f72eea0474ffe0752ce03817de19851103..6202227992233fdda2cd2f40a6301d1671e9049e 100644 (file)
@@ -92,8 +92,8 @@ int ulpi_select_transceiver(u32 ulpi_viewport, unsigned speed)
                tspeed = speed;
                break;
        default:
-               printf("ULPI: %s: wrong transceiver speed specified, "
-                       "falling back to full speed\n", __func__);
+               printf("ULPI: %s: wrong transceiver speed specified: %u, "
+                       "falling back to full speed\n", __func__, speed);
        }
 
        val = ulpi_read(ulpi_viewport, &ulpi->function_ctrl);
@@ -140,8 +140,8 @@ int ulpi_opmode_sel(u32 ulpi_viewport, unsigned opmode)
                topmode = opmode;
                break;
        default:
-               printf("ULPI: %s: wrong OpMode specified, "
-                       "falling back to OpMode Normal\n", __func__);
+               printf("ULPI: %s: wrong OpMode specified: %u, "
+                       "falling back to OpMode Normal\n", __func__, opmode);
        }
 
        val = ulpi_read(ulpi_viewport, &ulpi->function_ctrl);
@@ -161,8 +161,8 @@ int ulpi_serial_mode_enable(u32 ulpi_viewport, unsigned smode)
        case ULPI_IFACE_3_PIN_SERIAL_MODE:
                break;
        default:
-               printf("ULPI: %s: unrecognized Serial Mode specified\n",
-                       __func__);
+               printf("ULPI: %s: unrecognized Serial Mode specified: %u\n",
+                       __func__, smode);
                return ULPI_ERROR;
        }