[Kimchi-devel] [PATCH v8 2/4] Host device passthrough: List eligible device to passthrough

Zhou Zheng Sheng zhshzhou at linux.vnet.ibm.com
Tue Jul 22 13:17:49 UTC 2014


on 2014/07/22 21:13, Aline Manera wrote:
> 
> On 07/22/2014 10:10 AM, Aline Manera wrote:
>>
>> On 07/21/2014 11:21 PM, Zhou Zheng Sheng wrote:
>>> on 2014/07/22 02:54, Aline Manera wrote:
>>>>> @@ -202,4 +305,7 @@ def _format_dev_node(node):
>>>>>
>>>>>
>>>>>    if __name__ == '__main__':
>>>>> +    from pprint import pprint
>>>>>        _print_host_dev_tree()
>>>>> +    print 'Eligible passthrough devices:'
>>>>> +    pprint(get_passthrough_dev_infos())
>>>> typo: pprint ?
>>>>
>>>>
>>> Do you mean pprint in the "from pprint import pprint". It's a Python
>>> module to do "pretty print", so it has a weird name ;-).
>>
>> Ops... I haven't seen the import
> 
> Move this import to the import session in the beginning of the file
> 

OK. Thanks.

>>
>>> The function pprint.pprint() can print Python data structures such as
>>> dict and list in a human friendly format.




More information about the Kimchi-devel mailing list