aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/virtio
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2008-05-30 16:09:41 -0400
committerRusty Russell <rusty@rustcorp.com.au>2008-05-30 01:09:42 -0400
commit2ad3cfbac58d0a6c6e65aafd9e0e757ca3d35292 (patch)
treefd17937a5873c078487a02adc5dbdc8a175b0796 /drivers/virtio
parentac9d463afb1ca2434335351f3b7d9e4c8f8470e9 (diff)
virtio: bus_id for devices should contain 'virtio'
Chris Lalancette <clalance@redhat.com> points out that virtio.c sets all device names to '0', '1', etc, which looks silly in /proc/interrupts. We change this from '%d' to 'virtio%d'. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Cc: Christian Borntraeger <borntraeger@de.ibm.com> Cc: Martin Schwidefsky <schwidefsky@de.ibm.com> Cc: Carsten Otte <cotte@de.ibm.com> Cc: Heiko Carstens <heiko.carstens@de.ibm.com> Cc: Chris Lalancette <clalance@redhat.com> Cc: Anthony Liguori <anthony@codemonkey.ws>
Diffstat (limited to 'drivers/virtio')
-rw-r--r--drivers/virtio/virtio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/virtio/virtio.c b/drivers/virtio/virtio.c
index 13866789b356..59918dfc3cb7 100644
--- a/drivers/virtio/virtio.c
+++ b/drivers/virtio/virtio.c
@@ -166,7 +166,7 @@ int register_virtio_device(struct virtio_device *dev)
166 int err; 166 int err;
167 167
168 dev->dev.bus = &virtio_bus; 168 dev->dev.bus = &virtio_bus;
169 sprintf(dev->dev.bus_id, "%u", dev->index); 169 sprintf(dev->dev.bus_id, "virtio%u", dev->index);
170 170
171 /* We always start by resetting the device, in case a previous 171 /* We always start by resetting the device, in case a previous
172 * driver messed it up. This also tests that code path a little. */ 172 * driver messed it up. This also tests that code path a little. */