diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2011-05-31 13:51:53 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2011-05-31 14:43:59 +1000 |
commit | dfee7c3f99c1ac5aeba7feed96f30b6b96739c73 (patch) | |
tree | 81942ed3a1c15d8ac205f8b3ceca9c2436bc853a /src/psmcomm.c | |
parent | f37c67fc6ca929aabc3ad47d5294efb0a58c0644 (diff) |
Replace xf86Msg with xf86IDrvMsg
xf86IDrvMsg automatically logs driver and device name.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src/psmcomm.c')
-rw-r--r-- | src/psmcomm.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/psmcomm.c b/src/psmcomm.c index 73ad079..37a6f5e 100644 --- a/src/psmcomm.c +++ b/src/psmcomm.c @@ -84,19 +84,19 @@ PSMQueryIsSynaptics(InputInfoPtr pInfo) */ SYSCALL(ret = ioctl(pInfo->fd, MOUSE_SETLEVEL, &level)); if (ret != 0) { - xf86Msg(X_ERROR, "%s Can't set native mode\n", pInfo->name); + xf86IDrvMsg(pInfo, X_ERROR, "%s Can't set native mode\n", pInfo->name); return FALSE; } SYSCALL(ret = ioctl(pInfo->fd, MOUSE_GETHWINFO, &mhw)); if (ret != 0) { - xf86Msg(X_ERROR, "%s Can't get hardware info\n", pInfo->name); + xf86IDrvMsg(pInfo, X_ERROR, "%s Can't get hardware info\n", pInfo->name); return FALSE; } if (mhw.model == MOUSE_MODEL_SYNAPTICS) { return TRUE; } else { - xf86Msg(X_ERROR, "%s Found no Synaptics, found Mouse model %d instead\n", + xf86IDrvMsg(pInfo, X_ERROR, "%s Found no Synaptics, found Mouse model %d instead\n", pInfo->name, mhw.model); return FALSE; } @@ -143,14 +143,14 @@ PSMQueryHardware(InputInfoPtr pInfo) if (!PSMQueryIsSynaptics(pInfo)) return FALSE; - xf86Msg(X_PROBED, "%s synaptics touchpad found\n", pInfo->name); + xf86IDrvMsg(pInfo, X_PROBED, "synaptics touchpad found\n"); if (!psm_synaptics_identify(pInfo->fd, &psm_ident)) return FALSE; convert_hw_info(&psm_ident, synhw); - ps2_print_ident(synhw); + ps2_print_ident(pInfo, synhw); return TRUE; } |