From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761889AbYEWCsU (ORCPT ); Thu, 22 May 2008 22:48:20 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758061AbYEWCsH (ORCPT ); Thu, 22 May 2008 22:48:07 -0400 Received: from ozlabs.org ([203.10.76.45]:59344 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757527AbYEWCsE (ORCPT ); Thu, 22 May 2008 22:48:04 -0400 To: linux-kernel@vger.kernel.org From: Rusty Russell Date: Thu, 22 May 2008 21:47:50 -0500 Subject: [PATCH 1/3] virtio: bus_id for devices should contain 'virtio' Cc: Christian Borntraeger , Martin Schwidefsky , Carsten Otte , Heiko Carstens , Chris Lalancette , Anthony Liguori , virtualization@lists.linux-foundation.org Cc: Martin Schwidefsky Cc: Carsten Otte Cc: Heiko Carstens Cc: Chris Lalancette Cc: Anthony Liguori MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200805231247.50751.rusty@rustcorp.com.au> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Chris Lalancette 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 Cc: Christian Borntraeger Cc: Martin Schwidefsky Cc: Carsten Otte Cc: Heiko Carstens Cc: Chris Lalancette Cc: Anthony Liguori --- drivers/virtio/virtio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -r 2f0d0ce2adbf drivers/virtio/virtio.c --- a/drivers/virtio/virtio.c Fri May 23 11:55:02 2008 +1000 +++ b/drivers/virtio/virtio.c Fri May 23 12:23:39 2008 +1000 @@ -166,7 +169,7 @@ int register_virtio_device(struct virtio int err; dev->dev.bus = &virtio_bus; - sprintf(dev->dev.bus_id, "%u", dev->index); + sprintf(dev->dev.bus_id, "virtio%u", dev->index); /* We always start by resetting the device, in case a previous * driver messed it up. This also tests that code path a little. */