drivers: can: shell: use shell_fprintf_normal
instead of shell_fprintf
#148406
Annotations
1 error, 1 warning, and 1 notice
Run Compliance Tests
Process completed with exit code 1.
|
check-warns:
ClangFormat.txt#L1
See https://docs.zephyrproject.org/latest/contribute/guidelines.html#clang-format for more details.
You may want to run clang-format on this change:
- shell_fprintf_normal(sh, "%c%c ",
- (frame->flags & CAN_FRAME_BRS) == 0 ? '-' : 'B',
+ shell_fprintf_normal(sh, "%c%c ", (frame->flags & CAN_FRAME_BRS) == 0 ? '-' : 'B',
(frame->flags & CAN_FRAME_ESI) == 0 ? '-' : 'P');
#endif /* CONFIG_CAN_FD_MODE */
/* CAN ID */
- shell_fprintf_normal(sh, "%*s%0*x ",
- (frame->flags & CAN_FRAME_IDE) != 0 ? 0 : 5, "",
+ shell_fprintf_normal(sh, "%*s%0*x ", (frame->flags & CAN_FRAME_IDE) != 0 ? 0 : 5, "",
(frame->flags & CAN_FRAME_IDE) != 0 ? 8 : 3,
- (frame->flags & CAN_FRAME_IDE) != 0 ?
- frame->id & CAN_EXT_ID_MASK : frame->id & CAN_STD_ID_MASK);
+ (frame->flags & CAN_FRAME_IDE) != 0 ? frame->id & CAN_EXT_ID_MASK
+ : frame->id & CAN_STD_ID_MASK);
/* DLC as number of bytes */
- shell_fprintf_normal(sh, "%s[%0*d] ",
- (frame->flags & CAN_FRAME_FDF) != 0 ? "" : " ",
- (frame->flags & CAN_FRAME_FDF) != 0 ? 2 : 1,
- nbytes);
+ shell_fprintf_normal(sh, "%s[%0*d] ", (frame->flags & CAN_FRAME_FDF) != 0 ? "" : " ",
+ (frame->flags & CAN_FRAME_FDF) != 0 ? 2 : 1, nbytes);
File:drivers/can/can_shell.c
Line:117
|
Run Compliance Tests:
drivers/can/can_shell.c#L117
drivers/can/can_shell.c:117
- shell_fprintf_normal(sh, "%c%c ",
- (frame->flags & CAN_FRAME_BRS) == 0 ? '-' : 'B',
+ shell_fprintf_normal(sh, "%c%c ", (frame->flags & CAN_FRAME_BRS) == 0 ? '-' : 'B',
(frame->flags & CAN_FRAME_ESI) == 0 ? '-' : 'P');
#endif /* CONFIG_CAN_FD_MODE */
/* CAN ID */
- shell_fprintf_normal(sh, "%*s%0*x ",
- (frame->flags & CAN_FRAME_IDE) != 0 ? 0 : 5, "",
+ shell_fprintf_normal(sh, "%*s%0*x ", (frame->flags & CAN_FRAME_IDE) != 0 ? 0 : 5, "",
(frame->flags & CAN_FRAME_IDE) != 0 ? 8 : 3,
- (frame->flags & CAN_FRAME_IDE) != 0 ?
- frame->id & CAN_EXT_ID_MASK : frame->id & CAN_STD_ID_MASK);
+ (frame->flags & CAN_FRAME_IDE) != 0 ? frame->id & CAN_EXT_ID_MASK
+ : frame->id & CAN_STD_ID_MASK);
/* DLC as number of bytes */
- shell_fprintf_normal(sh, "%s[%0*d] ",
- (frame->flags & CAN_FRAME_FDF) != 0 ? "" : " ",
- (frame->flags & CAN_FRAME_FDF) != 0 ? 2 : 1,
- nbytes);
+ shell_fprintf_normal(sh, "%s[%0*d] ", (frame->flags & CAN_FRAME_FDF) != 0 ? "" : " ",
+ (frame->flags & CAN_FRAME_FDF) != 0 ? 2 : 1, nbytes);
|
Loading