From: Andre Richter Date: Wed, 2 Oct 2013 10:23:26 +0000 (+0200) Subject: virt/kvm/iommu.c: Add leading zeros to device's BDF notation in debug messages X-Git-Tag: v3.13-rc1~80^2~56 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29242cb5c63b1f8e12e8055ba1a6c3e0004fa86d;p=pandora-kernel.git virt/kvm/iommu.c: Add leading zeros to device's BDF notation in debug messages When KVM (de)assigns PCI(e) devices to VMs, a debug message is printed including the BDF notation of the respective device. Currently, the BDF notation does not have the commonly used leading zeros. This produces messages like "assign device 0:1:8.0", which look strange at first sight. The patch fixes this by exchanging the printk(KERN_DEBUG ...) with dev_info() and also inserts "kvm" into the debug message, so that it is obvious where the message comes from. Also reduces LoC. Acked-by: Alex Williamson Signed-off-by: Andre Richter Signed-off-by: Gleb Natapov --- Reading git-diff-tree failed