]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
greybus: Prefix hexadecimal values with 0x while printing them
authorViresh Kumar <viresh.kumar@linaro.org>
Fri, 4 Dec 2015 16:00:10 +0000 (21:30 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Sat, 5 Dec 2015 00:23:36 +0000 (16:23 -0800)
To clearly specify the base for printed values, prefix hexadecimal
values with 0x.

Suggested-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/es2.c
drivers/staging/greybus/sdio.c
drivers/staging/greybus/svc.c
drivers/staging/greybus/uart.c

index ed22b6c0a73e87e2bc677f7bd7f573e717c5faf6..02cd2f6b8d3bb86ec8957b35b2c5a1b87dac257a 100644 (file)
@@ -890,7 +890,7 @@ static int ap_probe(struct usb_interface *interface,
                                endpoint->bEndpointAddress;
                } else {
                        dev_err(&udev->dev,
-                               "Unknown endpoint type found, address %02x\n",
+                               "Unknown endpoint type found, address 0x%02x\n",
                                endpoint->bEndpointAddress);
                }
        }
index beb35747a4f872ddcdf894140601b873212f2605..da9093738d4af723d8ef731cb89aeaa511d47d13 100644 (file)
@@ -398,7 +398,7 @@ static int gb_sdio_command(struct gb_sdio_host *host, struct mmc_command *cmd)
                cmd_flags = GB_SDIO_RSP_R3_R4;
                break;
        default:
-               dev_err(mmc_dev(host->mmc), "cmd flag invalid %04x\n",
+               dev_err(mmc_dev(host->mmc), "cmd flag invalid 0x%04x\n",
                        mmc_resp_type(cmd));
                ret = -EINVAL;
                goto out;
@@ -418,7 +418,7 @@ static int gb_sdio_command(struct gb_sdio_host *host, struct mmc_command *cmd)
                cmd_type = GB_SDIO_CMD_ADTC;
                break;
        default:
-               dev_err(mmc_dev(host->mmc), "cmd type invalid %04x\n",
+               dev_err(mmc_dev(host->mmc), "cmd type invalid 0x%04x\n",
                        mmc_cmd_type(cmd));
                ret = -EINVAL;
                goto out;
index 4514e869a288784f328514df2ec6f6e4aaa126f6..5ae64d7d3ecff6a6395a55b9887b87fcc7cfd17b 100644 (file)
@@ -85,14 +85,14 @@ int gb_svc_dme_peer_get(struct gb_svc *svc, u8 intf_id, u16 attr, u16 selector,
                                &request, sizeof(request),
                                &response, sizeof(response));
        if (ret) {
-               dev_err(&svc->dev, "failed to get DME attribute (%u %04x %u): %d\n",
+               dev_err(&svc->dev, "failed to get DME attribute (%u 0x%04x %u): %d\n",
                                intf_id, attr, selector, ret);
                return ret;
        }
 
        result = le16_to_cpu(response.result_code);
        if (result) {
-               dev_err(&svc->dev, "UniPro error while getting DME attribute (%u %04x %u): %u\n",
+               dev_err(&svc->dev, "UniPro error while getting DME attribute (%u 0x%04x %u): %u\n",
                                intf_id, attr, selector, result);
                return -EIO;
        }
@@ -121,14 +121,14 @@ int gb_svc_dme_peer_set(struct gb_svc *svc, u8 intf_id, u16 attr, u16 selector,
                                &request, sizeof(request),
                                &response, sizeof(response));
        if (ret) {
-               dev_err(&svc->dev, "failed to set DME attribute (%u %04x %u %u): %d\n",
+               dev_err(&svc->dev, "failed to set DME attribute (%u 0x%04x %u %u): %d\n",
                                intf_id, attr, selector, value, ret);
                return ret;
        }
 
        result = le16_to_cpu(response.result_code);
        if (result) {
-               dev_err(&svc->dev, "UniPro error while setting DME attribute (%u %04x %u %u): %u\n",
+               dev_err(&svc->dev, "UniPro error while setting DME attribute (%u 0x%04x %u %u): %u\n",
                                intf_id, attr, selector, value, result);
                return -EIO;
        }
@@ -502,7 +502,7 @@ static void gb_svc_process_deferred_request(struct work_struct *work)
                gb_svc_process_intf_hot_unplug(operation);
                break;
        default:
-               dev_err(&svc->dev, "bad deferred request type: %02x\n", type);
+               dev_err(&svc->dev, "bad deferred request type: 0x%02x\n", type);
        }
 
        gb_operation_put(operation);
index ec978a451b174f2cc6a2218de6831e110be73cec..1ba8476ce982c3ce8019738f872d808eb532232c 100644 (file)
@@ -122,7 +122,7 @@ static int gb_uart_request_recv(u8 type, struct gb_operation *op)
                break;
        default:
                dev_err(&connection->bundle->dev,
-                       "unsupported unsolicited request: %02x\n", type);
+                       "unsupported unsolicited request: 0x%02x\n", type);
                ret = -EINVAL;
        }