Skip to content

Commit

Permalink
HID: hid-holtekff: don't push static constants on stack for %*ph
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andy Shevchenko authored and Jiri Kosina committed Aug 5, 2013
1 parent 4858bfe commit 9854a6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hid/hid-holtekff.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 9854a6f

Please sign in to comment.