leds-bcm6328: print invalid LED
authorÁlvaro Fernández Rojas <noltari@gmail.com>
Thu, 8 Oct 2015 10:35:52 +0000 (12:35 +0200)
committerJacek Anaszewski <j.anaszewski@samsung.com>
Tue, 3 Nov 2015 07:59:38 +0000 (08:59 +0100)
Print invalid LED instead of warning only about maximum LED value.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
drivers/leds/leds-bcm6328.c

index 1793727bc9ae5f6c64467a68b4646b92e0963e1b..e1c19557450f61cfc70c4f074afa7e275421020e 100644 (file)
@@ -373,7 +373,7 @@ static int bcm6328_leds_probe(struct platform_device *pdev)
                        continue;
 
                if (reg >= BCM6328_LED_MAX_COUNT) {
-                       dev_err(dev, "invalid LED (>= %d)\n",
+                       dev_err(dev, "invalid LED (%u >= %d)\n", reg,
                                BCM6328_LED_MAX_COUNT);
                        continue;
                }