summaryrefslogtreecommitdiff
path: root/lib9p/core_gen/c_marshal.py
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2025-04-14 07:46:18 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2025-04-14 14:45:11 -0600
commitb5ea4c02dc4940464d68b9061cc27b378bfbd368 (patch)
treed35f9aa10bae31170e6173841efa871d578bbd59 /lib9p/core_gen/c_marshal.py
parentc62c41bc8aba632439dc19848d395180c4ad8e19 (diff)
lib9p_core: linux-errno.h: Rename LINUX_* => LIB9P_ERRNO_L_*
Diffstat (limited to 'lib9p/core_gen/c_marshal.py')
-rw-r--r--lib9p/core_gen/c_marshal.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib9p/core_gen/c_marshal.py b/lib9p/core_gen/c_marshal.py
index e8f00ac..620bdea 100644
--- a/lib9p/core_gen/c_marshal.py
+++ b/lib9p/core_gen/c_marshal.py
@@ -381,7 +381,7 @@ def gen_c_marshal(versions: set[str], typs: list[idl.UserType]) -> str:
)
ret += "\tif (needed_size > ctx->max_msg_size) {\n"
if isinstance(typ, idl.Message): # SPECIAL (disable for stat)
- ret += '\t\tlib9p_errorf(ctx, LINUX_ERANGE, "%s message too large to marshal into %s limit (limit=%"PRIu32")",\n'
+ ret += f'\t\tlib9p_errorf(ctx, {c9util.IDENT("ERRNO_L_ERANGE")}, "%s message too large to marshal into %s limit (limit=%"PRIu32")",\n'
ret += f'\t\t\t"{typ.typname}",\n'
ret += f'\t\t\tctx->version ? "negotiated" : "{'client' if typ.msgid % 2 == 0 else 'server'}",\n'
ret += "\t\t\tctx->max_msg_size);\n"