libhusb: fix warning spelling (helps greppability)
authorMichal Bloch <m.bloch@samsung.com>
Fri, 23 Oct 2015 15:50:27 +0000 (17:50 +0200)
committerStanislaw Wadas <s.wadas@samsung.com>
Wed, 2 Dec 2015 12:50:46 +0000 (13:50 +0100)
Make sure all failures have the same spelling.

This makes searching for errors easier, as search
for the correct word will now consistently find
all outstanding errors.

Change-Id: I8c31ff44aa8b64944923571cd41088dc4c6db53c
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
src/libhusb.c

index f2119d245f48c60a732215d07158803f4bbda803..e36dd77bf59188689d1d8cc1a7a2e4e9f49e674d 100644 (file)
@@ -228,7 +228,7 @@ libhusb_device_handle *libhusb_device_open_with_vid_pid(libhusb_context *ctx,
 
        dev = alloc_device(ldev);
        if (!dev) {
-               _E("Faild to allocate memory for a device");
+               _E("Failed to allocate memory for a device");
                goto close_handle;
        }
 
@@ -436,7 +436,7 @@ int libhusb_claim_interface(libhusb_device_handle *handle, int interface_number,
                                          interface_number);
        if (ret < 0) {
                ret = translate_error(ret);
-               _E("Faield to activate kernel driver (%d)", ret);
+               _E("Failed to activate kernel driver (%d)", ret);
                goto out;
        } else if (ret == 1) {
                ret = libusb_detach_kernel_driver(handle->lusb_dev_handle,
@@ -454,7 +454,7 @@ claim_interface:
        ret = libusb_claim_interface(handle->lusb_dev_handle, interface_number);
        if (ret < 0) {
                ret = translate_error(ret);
-               _E("Faild to claim interface (%d)", ret);
+               _E("Failed to claim interface (%d)", ret);
                goto claim_failed;
        }
 
@@ -863,7 +863,7 @@ int libhusb_get_string_descriptor_ascii(libhusb_device_handle *handle,
        ret = libusb_get_string_descriptor_ascii(handle->lusb_dev_handle, desc_index, data, length);
        if (ret < 0) {
                ret = translate_error(ret);
-               _E("Failded to get descriptor(%d)", ret);
+               _E("Failed to get descriptor(%d)", ret);
        }
 
        return ret;