sprintf(path, "/sys/class/stgt_device/device%d:%llu/size", tid, lun);
sprintf(path, "/sys/class/stgt_device/device%d:%" PRIu64 "/size", tid, lun);
static int device_info(int tid, uint64_t lun, uint64_t *size){	int fd, err;	char path[PATH_MAX], buf[128];	sprintf(path, "/sys/class/stgt_device/device%d:%llu/size", tid, lun);	fd = open(path, O_RDONLY);	if (fd < 0)		return fd;	err = read(fd, buf, sizeof(buf));	if (err < 0)		return err;	*size = strtoull(buf, NULL, 10);	close(fd);	return 0;}