drivers: can: shell: print device name in RX path
Include the device name when printing received CAN frames. This improves the user experience when working with multiple CAN controllers via the CAN shell. Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
This commit is contained in:
parent
68c48cd116
commit
88fb5e2edb
2 changed files with 43 additions and 13 deletions
|
@ -186,16 +186,20 @@ Received CAN frames matching the added filter(s) are printed to the shell. A few
|
|||
|
||||
.. code-block:: console
|
||||
|
||||
# Flags ID Size Data bytes
|
||||
-- 010 [8] 01 02 03 04 05 06 07 08
|
||||
B- 010 [08] 01 02 03 04 05 06 07 08
|
||||
BP 010 [03] 01 aa bb
|
||||
-- 00000010 [0]
|
||||
-- 010 [1] 20
|
||||
-- 010 [8] remote transmission request
|
||||
# Dev Flags ID Size Data bytes
|
||||
can0 -- 010 [8] 01 02 03 04 05 06 07 08
|
||||
can0 B- 010 [08] 01 02 03 04 05 06 07 08
|
||||
can0 BP 010 [03] 01 aa bb
|
||||
can0 -- 00000010 [0]
|
||||
can0 -- 010 [1] 20
|
||||
can0 -- 010 [8] remote transmission request
|
||||
|
||||
The columns have the following meaning:
|
||||
|
||||
* Dev
|
||||
|
||||
* Name of the device receiving the frame.
|
||||
|
||||
* Flags
|
||||
|
||||
* ``B``: The frame has the CAN FD Baud Rate Switch (BRS) flag set.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue