snprintf(cdev->class_id, BUS_ID_SIZE, "device%d:%llu",
snprintf(cdev->class_id, BUS_ID_SIZE, "device%d:%" PRIu64,
int tgt_sysfs_register_device(struct tgt_device *device){	struct tgt_target *target = device->target;	struct class_device *cdev = &device->cdev;	int err, i;	cdev->class = &tgt_device_class;	snprintf(cdev->class_id, BUS_ID_SIZE, "device%d:%llu",		 target->tid, device->dev_id);	err = class_device_register(cdev);	if (err)		return err;	/*	 * get handle to target so our parent is never released before	 * us	 */	if (!class_device_get(&target->cdev))		return -EINVAL;	if (device->dt->device_attrs) {		for (i = 0; device->dt->device_attrs[i]; i++) {			err = class_attr_add(&device->cdev,					     device->dt->device_attrs[i]);                        if (err)                                goto cleanup;		}	}	for (i = 0; tgt_device_attrs[i]; i++) {		if (!class_attr_overridden(device->dt->device_attrs,					   tgt_device_attrs[i])) {			err = class_device_create_file(&device->cdev,						       tgt_device_attrs[i]);			if (err)				goto cleanup;		}	}	return 0;cleanup:	class_device_put(&target->cdev);	class_device_unregister(cdev);	return err;}