aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/mouse
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2009-04-28 10:04:42 -0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2009-04-28 12:36:01 -0400
commit5340219317a3370a4b76a2b6f31b1e5a3dbc648b (patch)
treea63c666d739a3f50331f2f5a874296414270c29d /drivers/input/mouse
parent158e928741e58eb4aa379da422290c10fef23f00 (diff)
Input: bcm5974 - augment debug information
Add more button and finger data to the debug output. Signed-off-by: Henrik Rydberg <rydberg@euromail.se> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/mouse')
-rw-r--r--drivers/input/mouse/bcm5974.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/drivers/input/mouse/bcm5974.c b/drivers/input/mouse/bcm5974.c
index f2b38261eacb..2d8fc0bf6923 100644
--- a/drivers/input/mouse/bcm5974.c
+++ b/drivers/input/mouse/bcm5974.c
@@ -299,6 +299,11 @@ static int report_bt_state(struct bcm5974 *dev, int size)
299 if (size != sizeof(struct bt_data)) 299 if (size != sizeof(struct bt_data))
300 return -EIO; 300 return -EIO;
301 301
302 dprintk(7,
303 "bcm5974: button data: %x %x %x %x\n",
304 dev->bt_data->unknown1, dev->bt_data->button,
305 dev->bt_data->rel_x, dev->bt_data->rel_y);
306
302 input_report_key(dev->input, BTN_LEFT, dev->bt_data->button); 307 input_report_key(dev->input, BTN_LEFT, dev->bt_data->button);
303 input_sync(dev->input); 308 input_sync(dev->input);
304 309
@@ -330,8 +335,9 @@ static int report_tp_state(struct bcm5974 *dev, int size)
330 raw_y = raw2int(f->abs_y); 335 raw_y = raw2int(f->abs_y);
331 336
332 dprintk(9, 337 dprintk(9,
333 "bcm5974: raw: p: %+05d w: %+05d x: %+05d y: %+05d\n", 338 "bcm5974: "
334 raw_p, raw_w, raw_x, raw_y); 339 "raw: p: %+05d w: %+05d x: %+05d y: %+05d n: %d\n",
340 raw_p, raw_w, raw_x, raw_y, raw_n);
335 341
336 ptest = int2bound(&c->p, raw_p); 342 ptest = int2bound(&c->p, raw_p);
337 origin = raw2int(f->origin); 343 origin = raw2int(f->origin);
@@ -377,8 +383,8 @@ static int report_tp_state(struct bcm5974 *dev, int size)
377 383
378 dprintk(8, 384 dprintk(8,
379 "bcm5974: abs: p: %+05d w: %+05d x: %+05d y: %+05d " 385 "bcm5974: abs: p: %+05d w: %+05d x: %+05d y: %+05d "
380 "nmin: %d nmax: %d n: %d\n", 386 "nmin: %d nmax: %d n: %d ibt: %d\n", abs_p, abs_w,
381 abs_p, abs_w, abs_x, abs_y, nmin, nmax, dev->fingers); 387 abs_x, abs_y, nmin, nmax, dev->fingers, ibt);
382 388
383 } 389 }
384 390