* the interface bundle list locked here.
*/
if (gb_bundle_find(intf, bundle_id)) {
- pr_err("duplicate bundle id 0x%02x\n", bundle_id);
+ pr_err("duplicate bundle id %u\n", bundle_id);
return NULL;
}
retval = device_add(&bundle->dev);
if (retval) {
- pr_err("failed to add bundle device for id 0x%02x\n",
- bundle_id);
+ pr_err("failed to add bundle device for id %u\n", bundle_id);
put_device(&bundle->dev);
return NULL;
}
* about holding the connection lock.
*/
if (bundle && gb_connection_intf_find(bundle->intf, cport_id)) {
- dev_err(&bundle->dev, "cport 0x%04x already connected\n",
+ dev_err(&bundle->dev, "cport %u already connected\n",
cport_id);
return NULL;
}
* the target CPort id before filling it in.
*/
if (!cport_id_valid(hd, cport_id)) {
- dev_err(&udev->dev, "invalid destination cport 0x%02x\n",
- cport_id);
+ dev_err(&udev->dev, "invalid cport %u\n", cport_id);
return -EINVAL;
}
struct usb_device *udev = es2->usb_dev;
if (!cport_id_valid(hd, cport_id)) {
- dev_err(&udev->dev, "invalid destination cport 0x%02x\n",
- cport_id);
+ dev_err(&udev->dev, "invalid cport %u\n", cport_id);
return -EINVAL;
}
struct usb_device *udev = es2->usb_dev;
if (!cport_id_valid(hd, cport_id)) {
- dev_err(&udev->dev, "invalid destination cport 0x%02x\n",
- cport_id);
+ dev_err(&udev->dev, "invalid cport %u\n", cport_id);
return -EINVAL;
}
greybus_data_rcvd(hd, cport_id, urb->transfer_buffer,
urb->actual_length);
} else {
- dev_err(dev, "invalid cport id 0x%02x received\n", cport_id);
+ dev_err(dev, "invalid cport id %u received\n", cport_id);
}
exit:
/* put our urb back in the request pool */
__entry->payload_size = message->payload_size;
),
- TP_printk("greybus:%s op=%04x if_id=%04x hd_id=%04x l=%zu",
+ TP_printk("greybus:%s op=%04x if_id=%u hd_id=%u l=%zu",
__get_str(name), __entry->op_id, __entry->intf_cport_id,
__entry->hd_cport_id, __entry->payload_size)
);
__entry->payload_size = payload_size;
),
- TP_printk("greybus:%s if_id=%04x l=%zu", __get_str(name),
+ TP_printk("greybus:%s if_id=%u l=%zu", __get_str(name),
__entry->intf_cport_id, __entry->payload_size)
);
/* Nothing else should have its class set to control class */
if (class == GREYBUS_CLASS_CONTROL) {
dev_err(&intf->dev,
- "bundle 0x%02x cannot use control class\n",
+ "bundle %u cannot use control class\n",
bundle_id);
goto cleanup;
}