mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-16 14:56:43 +07:00
greybus: Prefix hexadecimal values with 0x while printing them
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>
This commit is contained in:
parent
2f3db927cd
commit
b933fa4a40
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user