From 86a6b4b3e3c55e60eb7087f04bf8a88f9cf71d8a Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Sun, 6 Nov 2022 03:17:01 +0000 Subject: [PATCH] ipc: Generated code doesn't need to care about line length --- src/xrt/ipc/shared/proto.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/xrt/ipc/shared/proto.py b/src/xrt/ipc/shared/proto.py index f216d7c91..b0a1276a3 100755 --- a/src/xrt/ipc/shared/proto.py +++ b/src/xrt/ipc/shared/proto.py @@ -263,10 +263,8 @@ ipc_dispatch(volatile struct ipc_client_state *ics, ipc_command_t *ipc_command) if call.needs_msg_struct: f.write( - "\t\tstruct ipc_{}_msg *msg =\n".format(call.name)) - f.write( - "\t\t (struct ipc_{}_msg *)ipc_command;\n".format( - call.name)) + "\t\tstruct ipc_{}_msg *msg = ".format(call.name)) + f.write("(struct ipc_{}_msg *)ipc_command;\n".format(call.name)) if call.out_args: f.write("\t\tstruct ipc_%s_reply reply = {0};\n" % call.name) else: