{
struct gb_bundle *bundle = to_gb_bundle(dev);
- return sprintf(buf, "%d", bundle->device_id);
+ return sprintf(buf, "%d\n", bundle->device_id);
}
static DEVICE_ATTR_RO(device_id);
{
struct gb_connection *connection = to_gb_connection(dev);
- return sprintf(buf, "%d", connection->state);
+ return sprintf(buf, "%d\n", connection->state);
}
static DEVICE_ATTR_RO(state);
{
struct gb_connection *connection = to_gb_connection(dev);
- return sprintf(buf, "%d", connection->protocol->id);
+ return sprintf(buf, "%d\n", connection->protocol->id);
}
static DEVICE_ATTR_RO(protocol_id);