mirror of
https://github.com/opnsense/src.git
synced 2026-06-14 19:20:18 -04:00
linuxkpi: Define dev_dbg_ratelimited()
Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D38145
This commit is contained in:
parent
29ab194554
commit
bbff0400c1
1 changed files with 6 additions and 0 deletions
|
|
@ -235,6 +235,12 @@ show_class_attr_string(struct class *class,
|
|||
dev_warn(dev, __VA_ARGS__); \
|
||||
} while (0)
|
||||
|
||||
#define dev_dbg_ratelimited(dev, ...) do { \
|
||||
static linux_ratelimit_t __ratelimited; \
|
||||
if (linux_ratelimited(&__ratelimited)) \
|
||||
dev_dbg(dev, __VA_ARGS__); \
|
||||
} while (0)
|
||||
|
||||
/* Public and LinuxKPI internal devres functions. */
|
||||
void *lkpi_devres_alloc(void(*release)(struct device *, void *), size_t, gfp_t);
|
||||
void lkpi_devres_add(struct device *, void *);
|
||||
|
|
|
|||
Loading…
Reference in a new issue