can-utils/mcp251xfd
Vincent Mailhol 0cfd56d613 lib: add pr_debug() macro
Add the pr_debug() macro so that:

  #ifdef DEBUG
  	printf("foo");
  #endif

can be replaced by:

  	pr_debug("foo");

Apply the pr_debug() macro wherever relevant.

Currently, there is no consensus whether debug messages should be
printed on stdout or stderr. Most of the modules: canbusload.c,
candump.c and canlogserver.c use stdout but
mcp251xfd/mcp251xfd-dev-coredump.c uses stderr. Harmonize the behavior
by following the major trend and make
mcp251xfd/mcp251xfd-dev-coredump.c also output to stdout.

slcanpty.c does a #define DEBUG, meaning that debug is always turned
on for this file. Remove this and make debug an option like every
other files.

Signed-off-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Acked-by: Oliver Hartkopp <socketcan@hartkopp.net>
Link: https://lore.kernel.org/all/20221114163848.3398-5-mailhol.vincent@wanadoo.fr
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2022-11-15 09:49:52 +01:00
..
99-devcoredump.rules mcp251xfd: add sample dev-coredump udev rule 2021-02-13 23:36:43 +01:00
devcoredump mcp251xfd: add sample dev-coredump udev rule 2021-02-13 23:36:43 +01:00
mcp251xfd-dev-coredump.c lib: add pr_debug() macro 2022-11-15 09:49:52 +01:00
mcp251xfd-dump-userspace.h mcp251xfd-dump: add tool to decode chip and driver state of mcp251xfd 2021-02-13 23:36:43 +01:00
mcp251xfd-dump.c mcp251xfd-dump: add dump for IOCON register 2022-02-09 08:29:53 +01:00
mcp251xfd-dump.h mcp251xfd-dump: add tool to decode chip and driver state of mcp251xfd 2021-02-13 23:36:43 +01:00
mcp251xfd-main.c mcp251xfd: add missing libgen.h header 2021-12-15 18:00:39 -08:00
mcp251xfd-regmap.c mcp251xfd-dump: add tool to decode chip and driver state of mcp251xfd 2021-02-13 23:36:43 +01:00
mcp251xfd.h mcp251xfd-dump: add tool to decode chip and driver state of mcp251xfd 2021-02-13 23:36:43 +01:00