arch/arc: bpf_jit: fix missing newline in pr_err messages
Subsystems (5)
PATCH 1/1 arch/arc: bpf_jit: fix missing newline in pr_err messages
From: haoyu.lu <[email protected]>
Add missing newline to pr_err messages in arch/arc/net/bpf_jit_arcv2.c.
Fixes f122668ddcce ("ARC: Add eBPF JIT support")
Signed-off-by haoyu.lu <[email protected]>
--- arch/arc/net/bpf_jit_arcv2.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
arch/arc/net/bpf_jit_arcv2.c +4 -4
@@ -2427,7 +2427,7 @@ u8 arc_prologue(u8 *buf, u32 usage, u16 frame_size)#ifdef ARC_BPF_JIT_DEBUG if ((usage &BIT (ARC_R_FP )) && frame_size ==0 ) { -pr_err ("FP is being saved while there is no frame." ); +pr_err ("FP is being saved while there is no frame.\n" );BUG (); }#endif
@@ -2454,7 +2454,7 @@ u8 arc_epilogue(u8 *buf, u32 usage, u16 frame_size)#ifdef ARC_BPF_JIT_DEBUG if ((usage &BIT (ARC_R_FP )) && frame_size ==0 ) { -pr_err ("FP is being saved while there is no frame." ); +pr_err ("FP is being saved while there is no frame.\n" );BUG (); }#endif
@@ -2868,7 +2868,7 @@ u8 gen_jmp_64(u8 *buf, u8 rd, u8 rs, u8 cond, u32 curr_off, u32 targ_off)break ;default :#ifdef ARC_BPF_JIT_DEBUG -pr_err ("64-bit jump condition is not known." ); +pr_err ("64-bit jump condition is not known.\n" );BUG ();#endif }
@@ -2948,7 +2948,7 @@ u8 gen_jmp_32(u8 *buf, u8 rd, u8 rs, u8 cond, u32 curr_off, u32 targ_off)*/ if (cond >=ARC_CC_LAST ) {#ifdef ARC_BPF_JIT_DEBUG -pr_err ("32-bit jump condition is not known." ); +pr_err ("32-bit jump condition is not known.\n" );BUG ();#endif return 0 ;
--
2.53.0.windows.1
Alexei Starovoitov
AppliedQuoted 7 lines · Haoyu Lu
From: haoyu.lu <[email protected]>
Add missing newline to
pr_errmessages inarch/arc/net/bpf_jit_arcv2.c.Fixes f122668ddcce ("ARC: Add eBPF JIT support")Signed-off-by haoyu.lu <[email protected]>
Applied to bpf-next