mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
This is another attempt at having pci-list produce consistent output. Without this change there differences in the output of both vslots and domain occur for domains that have never been started and domains that have been started. In order to address this I have taken the approach of using integers where possible and explicitly formating them, rather than relying on string representations that are present in data structures. I have also re-used the common part of the format, to try and mitigate. the possibility of future inconsistencies there. This patch also: * Removes trailing whitespace * Removes unnecessary brackets and whitespace from print invocations * Prints the header outside of the loop to avoid having to maintain a state variable Signed-off-by: Simon Horman <horms@verge.net.au>
The file test.py here is from the Zope project, and is Copyright (c) 2001, 2002 Zope Corporation and Contributors. This file is released under the Zope Public License, version 2.0, a copy of which is in the file ZPL-2.0.