[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [XEN PATCH for-4.17 v5 16/17] tools/golang/xenlight: Rework gengotypes.py and generation of *.gen.go
- To: Anthony Perard <anthony.perard@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Andrew Cooper <Andrew.Cooper3@xxxxxxxxxx>
- Date: Thu, 13 Oct 2022 15:00:20 +0000
- Accept-language: en-GB, en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=hIzasv3oIUd/MAb+jyBuxyPRM1xYyg9mJUItM2ggxvE=; b=IqV31rniVEJNiiOhrNr3lNZoMx1hHGMo5oWtZ9lrRHUL9pWgXynJDEoid1M2xvxm9sBoG6I22DAGUSH39y4fA/Z6qGTVj9cuSxDICqcRmipYc+DeaIDQLIKjqMzk+8Lcsfp/IHXjWF7VMkLJsotuJMYWVn3y7nFs+44M844LPVXrvdxWlSV7qThA9newabQKzK0bcwouRtbQpjtBGut1oQwivmiGsgbnnn3zF3MCwf2wS2nRbWiDTneC3YKue18wiP8vzpPmGUXMD9V6kI/pau++c7TG4xwKLZIlx2aKD+CiWexYILqOnSsfwKIeV7WIqPqlusdrQjaAyBeknRr1QA==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=h7D92FzVU5BaKWqblZJXioBxEqMFOl7FY85aXLHucVxnS2WZ4OgXNeZXsf8ylSpldyc0QQEkfu7D9AgbeqZsEh3aznrlfZ1VQTqcSVuASXaJ5SBVNN8er1ry+GFKNhY4fi5SFa6EsTcjCRARe2YQ9/4qHdx4qKh9nUXDCu1GlJ66H0rg4QYYkYuvNP7vg3mnhrw99lhpRuz1gdebmNRdl8le1tBgkGZ2or5Ra8omBp+ChGIkE6EmxLlQlvPakVh4N/bcBIxt/Y2SC3eqF78XjFjs6LFKbEElseC6IE2L1Ha1fBTpD5b/Gp97/iaNxv3a4Jk13jkUJzHoY7atHcw5RQ==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
- Cc: Henry Wang <Henry.Wang@xxxxxxx>, George Dunlap <George.Dunlap@xxxxxxxxxx>, Nick Rosbrook <rosbrookn@xxxxxxxxx>, Wei Liu <wl@xxxxxxx>
- Delivery-date: Thu, 13 Oct 2022 15:00:34 +0000
- Ironport-data: A9a23:sNa9vKJ5DTEwUwkDFE+R7ZQlxSXFcZb7ZxGr2PjKsXjdYENS0zcOz zBMWzvTO6mCYGL8c9wiPYrk9EtUuJPXmoJgGgRlqX01Q3x08seUXt7xwmUcnc+xBpaaEB84t ZV2hv3odp1coqr0/0/1WlTZhSAgk/vOHtIQMcacUghpXwhoVSw9vhxqnu89k+ZAjMOwRgiAo rsemeWGULOe82MyYz98B56r8ks15q2q4WhA5zTSWNgQ1LPgvyhNZH4gDfnZw0vQGuF8AuO8T uDf+7C1lkuxE8AFU47Nfh7TKyXmc5aKVeS8oiM+t5uK23CukhcawKcjXMfwXG8M49m/c3Kd/ /0W3XC4YV9B0qQhA43xWTEAe811FfUuFLMqvRFTGCFcpqHLWyKE/hlgMK05Fb0Gvb59Blpxz t0RLQIvLQmnpcfs3q3uH4GAhux7RCXqFKU2nyg6iBv/XbMhS52FRLjW79hF2jt2ntpJAfvVe 8seb3xocQjEZBpMfFwQDfrSns/x3iW5L2Ie9Q/T/PVpi4TQ5FUZPLzFGdzZYNGVA+5SmV6Vv Dnu9GXlGBAKcteYzFJp91r83befw3qiAur+EpWXsc9xgHCyxlAPESY9e2CjsNiryXSXDoc3x 0s8v3BGQbIJ3FymSJzxUgO1pFaAvwUAQJxAHusi8gaPx6HIpQGDCQAsbjNHcs1gi8YwShQjz FrPlNTsbRR1t6afU3Wa9bG8oja7OCxTJmgHDQcbSSMV7t+lp5s85i8jVf5mGa+xy9fzSTf5x mnQqDBk3upNy8kWy6+84FbLxSq2oYTERRI04QORWX+56gR+Z8iuYInABUXn0Mus5b2xFjGp1 EXoUeDHhAzSJflhTBCwfdg=
- Ironport-hdrordr: A9a23:4krwhKEl6FjJLT10pLqFS5HXdLJyesId70hD6qkvc3Fom52j/f xGws5x6fatskdrZJkh8erwW5Vp2RvnhNNICPoqTM2ftW7dySeVxeBZnMHfKljbdxEWmdQtsp uIH5IeNDS0NykDsS+Y2nj2Lz9D+qjgzEnAv463oBlQpENRGthdBmxCe2Sm+zhNNW177O0CZf +hD6R8xwaISDAyVICWF3MFV+/Mq5ngj5T9eyMLABYh9U2nkS6owKSSKWnY4j4uFxd0hZsy+2 nMlAL0oo+5teug9xPa32jPq7xLhdrazMdZDsDksLlUFtyssHfqWG1SYczGgNkHmpDq1L/sqq iKn/4UBbUw15oWRBDynfKi4Xi47N9k0Q6e9bbRuwqenSW+fkN1NyMJv/MmTvOSgXBQw+1Uwe ZF2XmUuIFQCg6FlCPh58LQXxUvjUasp2E++NRjxkC3fLFuH4O5l7Zvin99AdMFBmb3+YonGO 5hAIXV4+tXa0qTazTcsnN0yNKhU3wvFlPeK3Jy8fC9wnxThjR03kEYzMsQkjMJ8488UYBN46 DBPr5znL9DQ8cKZeZ2BfsHQ8GwFmvRKCi8eF66MBDiDuUKKnjNo5n47PE84/yrYoUByN8olJ HIQDpjxBoPkoLVeLizNbFwg2PwqT+GLEXQI+llluhEk6y5Qqb3OiueT11rm9e8opwkc7/mZ8 o=
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHY3wYExc++jpfrd0yvyakMPv5Mw64MavoA
- Thread-topic: [XEN PATCH for-4.17 v5 16/17] tools/golang/xenlight: Rework gengotypes.py and generation of *.gen.go
On 13/10/2022 14:05, Anthony Perard wrote:
> diff --git a/tools/golang/xenlight/gengotypes.py
> b/tools/golang/xenlight/gengotypes.py
> index ac1cf060dd..ff4c2ad216 100644
> --- a/tools/golang/xenlight/gengotypes.py
> +++ b/tools/golang/xenlight/gengotypes.py
> @@ -723,7 +723,13 @@ def xenlight_golang_fmt_name(name, exported = True):
> return words[0] + ''.join(x.title() for x in words[1:])
>
> if __name__ == '__main__':
> + if len(sys.argv) != 4:
> + print("Usage: gengotypes.py <idl> <types.gen.go> <helpers.gen.go>",
> file=sys.stderr)
This breaks with Py2.7. Needs a
from __future__ import print_function
inserting at the top.
~Andrew
|