Skip to content

Commit 9099b3e

Browse files
committed
Replace logger.warn with logger.warning
1 parent cecf450 commit 9099b3e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

pythonbpf/helper/helper_utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def handle_fstring_print(joined_str, module, builder, func,
112112

113113
# NOTE: Process expressions (limited to 3 due to BPF constraints)
114114
if len(exprs) > 3:
115-
logger.warn(
115+
logger.warning(
116116
"bpf_printk supports up to 3 args, extra args will be ignored.")
117117

118118
for expr in exprs[:3]:
@@ -246,13 +246,13 @@ def _prepare_expr_args(expr, func, module, builder,
246246
if val.type.width < 64:
247247
val = builder.sext(val, ir.IntType(64))
248248
else:
249-
logger.warn(
249+
logger.warning(
250250
"Only int and ptr supported in bpf_printk args. "
251251
"Others default to 0.")
252252
val = ir.Constant(ir.IntType(64), 0)
253253
return val
254254
else:
255-
logger.warn(
255+
logger.warning(
256256
"Failed to evaluate expression for bpf_printk argument. "
257257
"It will be converted to 0.")
258258
return ir.Constant(ir.IntType(64), 0)

0 commit comments

Comments
 (0)