<div dir="ltr">Hi All,<div><br></div><div>This is a reminder for review requests for the patches to CAN Framework changes based on review comments.</div><div><br></div><div>Regards</div><div>Prashanth S</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 16 Dec 2022 at 18:58, Prashanth S <<a href="mailto:fishesprashanth@gmail.com">fishesprashanth@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">---<br>
cpukit/include/dev/can/can.h | 27 +++++++++++++++++++++------<br>
1 file changed, 21 insertions(+), 6 deletions(-)<br>
<br>
diff --git a/cpukit/include/dev/can/can.h b/cpukit/include/dev/can/can.h<br>
index 9e55395039..4ee51ebc9d 100644<br>
--- a/cpukit/include/dev/can/can.h<br>
+++ b/cpukit/include/dev/can/can.h<br>
@@ -53,13 +53,28 @@<br>
printf(str, ##__VA_ARGS__); \<br>
} while (false);<br>
<br>
+#ifdef RTEMS_CAN_DEBUG<br>
+<br>
#define CAN_DEBUG(str, ...) DEBUG(str, ##__VA_ARGS__)<br>
-#define CAN_DEBUG_BUF(str, ...) CAN_DEBUG(str, ##__VA_ARGS__)<br>
-#define CAN_DEBUG_ISR(str, ...) CAN_DEBUG(str, ##__VA_ARGS__)<br>
-#define CAN_DEBUG_LOCK(str, ...) CAN_DEBUG(str, ##__VA_ARGS__)<br>
-#define CAN_DEBUG_RX(str, ...) CAN_DEBUG(str, ##__VA_ARGS__)<br>
-#define CAN_DEBUG_TX(str, ...) CAN_DEBUG(str, ##__VA_ARGS__)<br>
-#define CAN_DEBUG_REG(str, ...) //CAN_DEBUG(str, ##__VA_ARGS__)<br>
+#define CAN_DEBUG_BUF(str, ...) DEBUG(str, ##__VA_ARGS__)<br>
+#define CAN_DEBUG_ISR(str, ...) DEBUG(str, ##__VA_ARGS__)<br>
+#define CAN_DEBUG_LOCK(str, ...) DEBUG(str, ##__VA_ARGS__)<br>
+#define CAN_DEBUG_RX(str, ...) DEBUG(str, ##__VA_ARGS__)<br>
+#define CAN_DEBUG_TX(str, ...) DEBUG(str, ##__VA_ARGS__)<br>
+#define CAN_DEBUG_REG(str, ...) /* CAN_DEBUG(str, ##__VA_ARGS__) */<br>
+<br>
+#else /* RTEMS_CAN_DEBUG */<br>
+<br>
+#define CAN_DEBUG(str, ...)<br>
+#define CAN_DEBUG_BUF(str, ...)<br>
+#define CAN_DEBUG_ISR(str, ...)<br>
+#define CAN_DEBUG_LOCK(str, ...)<br>
+#define CAN_DEBUG_RX(str, ...)<br>
+#define CAN_DEBUG_TX(str, ...)<br>
+#define CAN_DEBUG_REG(str, ...)<br>
+<br>
+#endif /* RTEMS_CAN_DEBUG */<br>
+<br>
#define CAN_ERR(str, ...) DEBUG(str, ##__VA_ARGS__)<br>
<br>
#define CAN_MSG_LEN(msg) ((char *)(&((struct can_msg *)msg)->data[(uint16_t)((struct can_msg *)msg)->len]) - (char *)(msg))<br>
-- <br>
2.25.1<br>
<br>
</blockquote></div>