diff options
author | reillyg@chromium.org <reillyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-21 02:20:42 +0000 |
---|---|---|
committer | reillyg@chromium.org <reillyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-21 02:20:42 +0000 |
commit | 0d3277b8cf6d9a668c8cf9a69c40c152b71de66d (patch) | |
tree | 12687e29a118f9a5a00a29394360d075d22e9364 /device/hid/hid_service_linux.cc | |
parent | 4372da55869735dea64134c87c3793050b38a623 (diff) | |
download | chromium_src-0d3277b8cf6d9a668c8cf9a69c40c152b71de66d.zip chromium_src-0d3277b8cf6d9a668c8cf9a69c40c152b71de66d.tar.gz chromium_src-0d3277b8cf6d9a668c8cf9a69c40c152b71de66d.tar.bz2 |
Log errors in Linux HID from read, write and ioctl calls.
Log human readable descriptions of the errors generated by system calls
executed on Linux against HID devices.
BUG=
Review URL: https://codereview.chromium.org/348733002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@278899 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'device/hid/hid_service_linux.cc')
-rw-r--r-- | device/hid/hid_service_linux.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/device/hid/hid_service_linux.cc b/device/hid/hid_service_linux.cc index 5257dcd..7033501 100644 --- a/device/hid/hid_service_linux.cc +++ b/device/hid/hid_service_linux.cc @@ -130,7 +130,7 @@ void HidServiceLinux::OnDeviceAdded(udev_device* device) { int desc_size = 0; int res = ioctl(device_file.GetPlatformFile(), HIDIOCGRDESCSIZE, &desc_size); if (res < 0) { - LOG(ERROR) << "HIDIOCGRDESCSIZE failed."; + PLOG(ERROR) << "Failed to get report descriptor size"; device_file.Close(); return; } @@ -140,7 +140,7 @@ void HidServiceLinux::OnDeviceAdded(udev_device* device) { res = ioctl(device_file.GetPlatformFile(), HIDIOCGRDESC, &rpt_desc); if (res < 0) { - LOG(ERROR) << "HIDIOCGRDESC failed."; + PLOG(ERROR) << "Failed to get report descriptor"; device_file.Close(); return; } |