Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(229)

Side by Side Diff: components/usb_service/usb_error.cc

Issue 344793009: Log errors from libusb. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/usb_service/usb_error.h ('k') | components/usb_service/usb_service_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "components/usb_service/usb_error.h"
6
7 #include "third_party/libusb/src/libusb/libusb.h"
8
9 namespace usb_service {
10
11 std::string ConvertErrorToString(int errcode) {
12 return libusb_strerror((libusb_error)errcode);
Ken Rockot(use gerrit already) 2014/06/19 23:09:37 nit: Please use static_cast<libusb_error>(errorcod
13 }
14
15 } // namespace usb_service;
OLDNEW
« no previous file with comments | « components/usb_service/usb_error.h ('k') | components/usb_service/usb_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698