int i, x, remain = PAGE_SIZE;
unsigned long off;
- char *p = buf;
+ char *pos = buf;
u8 *partition_name;
struct ultra_vbus_deviceinfo dev_info;
if (channel) {
if (vdev->name)
partition_name = vdev->name;
- x = snprintf(p, remain,
+ x = snprintf(pos, remain,
"Client device / client driver info for %s partition (vbus #%d):\n",
partition_name, vdev->chipset_dev_no);
- p += x;
+ pos += x;
remain -= x;
x = visorchannel_read(channel,
offsetof(struct
chp_info),
&dev_info, sizeof(dev_info));
if (x >= 0) {
- x = vbuschannel_devinfo_to_string(&dev_info, p,
+ x = vbuschannel_devinfo_to_string(&dev_info, pos,
remain, -1);
- p += x;
+ pos += x;
remain -= x;
}
x = visorchannel_read(channel,
bus_info),
&dev_info, sizeof(dev_info));
if (x >= 0) {
- x = vbuschannel_devinfo_to_string(&dev_info, p,
+ x = vbuschannel_devinfo_to_string(&dev_info, pos,
remain, -1);
- p += x;
+ pos += x;
remain -= x;
}
off = offsetof(struct spar_vbus_channel_protocol, dev_info);
off, &dev_info, sizeof(dev_info));
if (x >= 0) {
x = vbuschannel_devinfo_to_string
- (&dev_info, p, remain, i);
- p += x;
+ (&dev_info, pos, remain, i);
+ pos += x;
remain -= x;
}
off += sizeof(dev_info);