HID: hid-holtekff: don't push static constants on stack for %*ph
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 2 Aug 2013 11:08:00 +0000 (14:08 +0300)
committerJiri Kosina <jkosina@suse.cz>
Mon, 5 Aug 2013 09:29:57 +0000 (11:29 +0200)
There is no need to pass constants via stack. The width may be explicitly
specified in the format.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-holtekff.c

index 9a8f051245258973f53ad84f8debef8b2f6db7e9..9325545fc3ae1cac4e3919c1120af6841590d4f4 100644 (file)
@@ -98,7 +98,7 @@ static void holtekff_send(struct holtekff_device *holtekff,
                holtekff->field->value[i] = data[i];
        }
 
-       dbg_hid("sending %*ph\n", 7, data);
+       dbg_hid("sending %7ph\n", data);
 
        hid_hw_request(hid, holtekff->field->report, HID_REQ_SET_REPORT);
 }