Skip to content

Commit

Permalink
xpadneo, debug: Fix indentation and output
Browse files Browse the repository at this point in the history
Signed-off-by: Kai Krakow <kai@kaishome.de>
  • Loading branch information
kakra committed Dec 5, 2024
1 parent f1a7669 commit 45dac5d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions hid-xpadneo/src/hid-xpadneo.c
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,7 @@ static int xpadneo_output_report(struct hid_device *hdev, __u8 *buf, size_t len)
r->ff.magnitude_left, r->ff.magnitude_right,
r->ff.magnitude_strong, r->ff.magnitude_weak,
r->ff.pulse_sustain_10ms * 10,
r->ff.pulse_release_10ms * 10,
r->ff.loop_count);
r->ff.pulse_release_10ms * 10, r->ff.loop_count);
} else {
hid_info(hdev, "HID debug: len %ld malformed cmd 0x%02x\n", len,
buf[0]);
Expand Down Expand Up @@ -416,8 +415,8 @@ static void xpadneo_test_rumble(char *which, struct xpadneo_devdata *xdata, stru
{
enum xpadneo_rumble_motors enabled = pck.ff.enable;

hid_info(xdata->hdev, "testing %s: sustain %d0ms release %d0ms loop %d wait 30ms\n", which,
pck.ff.pulse_sustain_10ms, pck.ff.pulse_release_10ms, pck.ff.loop_count);
hid_info(xdata->hdev, "testing %s: sustain %dms release %dms loop %d wait 30ms\n", which,
pck.ff.pulse_sustain_10ms * 10, pck.ff.pulse_release_10ms * 10, pck.ff.loop_count);

/*
* XPADNEO_QUIRK_NO_MOTOR_MASK:
Expand Down

0 comments on commit 45dac5d

Please sign in to comment.