staging/asus_oled fixed linebreak and printk issue
authorMatthias Schid <aircrach115@gmail.com>
Wed, 5 Jun 2013 12:04:32 +0000 (14:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Jun 2013 22:29:07 +0000 (15:29 -0700)
fixed a linebreak within an error message string coding style
issue reported by checkpatch.pl and dev_err format parameters

Signed-off-by: Matthias Schid <aircrach115@gmail.com>
Signed-off-by: Stefan Huber <steffhip@googlemail.com>
Signed-off-by: Simon Puels <simon.puels@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/asus_oled/asus_oled.c

index e1038aac8867f700c5b6b4c8c9c101f74cd39b38..3654dc32a0c6ca4d98262809ce64653688ee43da 100644 (file)
@@ -387,10 +387,8 @@ static int append_values(struct asus_oled_dev *odev, uint8_t val, size_t count)
                }
 
                if (i >= odev->buf_size) {
-                       dev_err(odev->dev, "Buffer overflow! Report a bug:"
-                              "offs: %d >= %d i: %d (x: %d y: %d)\n",
-                              (int) odev->buf_offs, (int) odev->buf_size,
-                              (int) i, (int) x, (int) y);
+                       dev_err(odev->dev, "Buffer overflow! Report a bug: offs: %zu >= %zu i: %zu (x: %zu y: %zu)\n",
+                              odev->buf_offs, odev->buf_size, i, x, y);
                        return -EIO;
                }