Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 328529
b: refs/heads/master
c: fb4f552
h: refs/heads/master
i:
  328527: 1efa2fc
v: v3
  • Loading branch information
Andy Shevchenko authored and Dmitry Torokhov committed Sep 13, 2012
1 parent 7eb37b6 commit 69a971e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8757145af0cc7d51dc4d491c9a2248ece50b9932
refs/heads/master: fb4f552e895cec29934d94a99cbd1f1f00448a88
9 changes: 3 additions & 6 deletions trunk/drivers/input/mouse/hgpk.c
Original file line number Diff line number Diff line change
Expand Up @@ -334,11 +334,8 @@ static bool hgpk_is_byte_valid(struct psmouse *psmouse, unsigned char *packet)

if (!valid)
psmouse_dbg(psmouse,
"bad data, mode %d (%d) %02x %02x %02x %02x %02x %02x\n",
priv->mode, pktcnt,
psmouse->packet[0], psmouse->packet[1],
psmouse->packet[2], psmouse->packet[3],
psmouse->packet[4], psmouse->packet[5]);
"bad data, mode %d (%d) %*ph\n",
priv->mode, pktcnt, 6, psmouse->packet);

return valid;
}
Expand Down Expand Up @@ -1030,7 +1027,7 @@ static enum hgpk_model_t hgpk_get_model(struct psmouse *psmouse)
return -EIO;
}

psmouse_dbg(psmouse, "ID: %02x %02x %02x\n", param[0], param[1], param[2]);
psmouse_dbg(psmouse, "ID: %*ph\n", 3, param);

/* HGPK signature: 0x67, 0x00, 0x<model> */
if (param[0] != 0x67 || param[1] != 0x00)
Expand Down

0 comments on commit 69a971e

Please sign in to comment.