printf("drm:pid%d:%s *DEBUG* " fmt, curproc->p_p->ps_pid, \
__func__ , ## arg)
#else
-#define dev_info(dev, fmt, arg...) \
- do { } while(0)
-#define dev_info_once(dev, fmt, arg...) \
- do { } while(0)
-#define dev_dbg(dev, fmt, arg...) \
- do { } while(0)
-#define dev_dbg_once(dev, fmt, arg...) \
- do { } while(0)
-#define dev_dbg_ratelimited(dev, fmt, arg...) \
- do { } while(0)
+
+static inline void
+dev_info(struct device *dev, const char *fmt, ...)
+{
+}
+
+static inline void
+dev_info_once(struct device *dev, const char *fmt, ...)
+{
+}
+
+static inline void
+dev_dbg(struct device *dev, const char *fmt, ...)
+{
+}
+
+static inline void
+dev_dbg_once(struct device *dev, const char *fmt, ...)
+{
+}
+
+static inline void
+dev_dbg_ratelimited(struct device *dev, const char *fmt, ...)
+{
+}
+
#endif
static inline const char *