Message ID | af0e3cd9bbfe49541387ecfa4635c49b45fc4503.1587468781.git.echaudro@redhat.com |
---|---|
State | Accepted |
Commit | cda22c659e953c75b4c3c6e7bcfa0e37bbe48967 |
Headers | show |
Series | [ovs-dev] Utilities: make print() in gdb script work on all version of Python | expand |
On Tue, Apr 21, 2020 at 01:33:55PM +0200, Eelco Chaudron wrote: > Signed-off-by: Eelco Chaudron <echaudro@redhat.com> > --- Applied to master, thanks! Should we backport? 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@openvswitch.org > https://mail.openvswitch.org/mailman/listinfo/ovs-dev
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@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@openvswitch.org >> https://mail.openvswitch.org/mailman/listinfo/ovs-dev
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
Signed-off-by: Eelco Chaudron <echaudro@redhat.com> --- utilities/gdb/ovs_gdb.py | 1 + 1 file changed, 1 insertion(+)