[ovs-dev] [PATCH] Utilities: make print() in gdb script work on all version of Python

Eelco Chaudron echaudro at redhat.com
Wed Apr 22 07:09:16 UTC 2020



On 21 Apr 2020, at 17:58, William Tu wrote:

> On Tue, Apr 21, 2020 at 01:33:55PM +0200, Eelco Chaudron wrote:
>> Signed-off-by: Eelco Chaudron <echaudro at redhat.com>
>> ---
> Applied to master, thanks!
> Should we backport?

This was introduced in 2.11, so in theory you could backport it all the 
way to 2.11.
However, I always use the gdb script from the latest master branch.

I leave it up to you…

> William
>
>>  utilities/gdb/ovs_gdb.py | 1 +
>>  1 file changed, 1 insertion(+)
>>
>> diff --git a/utilities/gdb/ovs_gdb.py b/utilities/gdb/ovs_gdb.py
>> index 0b2ecb81b..1111f3100 100644
>> --- a/utilities/gdb/ovs_gdb.py
>> +++ b/utilities/gdb/ovs_gdb.py
>> @@ -55,6 +55,7 @@
>>  #    ...
>>  #    ...
>>  #
>> +from __future__ import print_function
>>  import gdb
>>  import sys
>>  import uuid
>> -- 
>> 2.24.0
>>
>> _______________________________________________
>> dev mailing list
>> dev at openvswitch.org
>> https://mail.openvswitch.org/mailman/listinfo/ovs-dev



More information about the dev mailing list