{
struct gb_endo *endo = to_gb_endo(dev);
- return sprintf(buf, "0x%02x\n", endo->ap_intf_id);
+ return sprintf(buf, "%u\n", endo->ap_intf_id);
}
static DEVICE_ATTR_RO(ap_intf_id);
retval = device_add(&intf->dev);
if (retval) {
- pr_err("failed to add interface device for id 0x%02hhx\n",
- interface_id);
+ pr_err("failed to add interface %u\n", interface_id);
goto free_intf;
}
ret = gb_operation_sync(connection, GB_SVC_TYPE_CONN_DESTROY,
&request, sizeof(request), NULL, 0);
if (ret)
- pr_err("failed to destroy connection (%hhx:%hx %hhx:%hx) %d\n",
+ pr_err("failed to destroy connection (%hhu:%hu %hhu:%hu) %d\n",
intf1_id, cport1_id, intf2_id, cport2_id, ret);
}
EXPORT_SYMBOL_GPL(gb_svc_connection_destroy);
ret = gb_operation_sync(svc->connection, GB_SVC_TYPE_ROUTE_DESTROY,
&request, sizeof(request), NULL, 0);
if (ret)
- pr_err("failed to destroy route (%hhx %hhx) %d\n",
+ pr_err("failed to destroy route (%hhu %hhu) %d\n",
intf1_id, intf2_id, ret);
}