device: Fix dev_dbg_once macro
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH 1/1 device: Fix dev_dbg_once macro
There is a copy/paste typo in the dev_dbg_once macro.
It uses dev_info instead of dev_dbg, so use the correct function instead.
Signed-off-by Joe Perches <[email protected]>
Noticed-by Marc Finet <[email protected]>
--- include/linux/device.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/device.h +1 -1
@@ -1156,7 +1156,7 @@ do { \#define dev_info_once (dev, fmt, ...) \ dev_level_once(dev_info, dev, fmt, ##__VA_ARGS__)#define dev_dbg_once (dev, fmt, ...) \ - dev_level_once(dev_info, dev, fmt, ##__VA_ARGS__) + dev_level_once(dev_dbg, dev, fmt, ##__VA_ARGS__)#define dev_level_ratelimited (dev_level, dev, fmt, ...) \ do { \
Quoted 7 lines · Joe Perches
There is a copy/paste typo in the
dev_dbg_oncemacro.It uses
dev_infoinstead ofdev_dbg, so use the correct function instead.Signed-off-by Joe Perches <[email protected]>Noticed-by Marc Finet <[email protected]>
Ping?
Quoted 18 lines
--- include/linux/device.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/linux/device.h +1
-1@@ -1156,7 +1156,7 @@ do { \#define dev_info_once (dev, fmt, ...) \ dev_level_once(dev_info, dev, fmt, ##__VA_ARGS__)#define dev_dbg_once (dev, fmt, ...) \ - dev_level_once(dev_info, dev, fmt, ##__VA_ARGS__) + dev_level_once(dev_dbg, dev, fmt, ##__VA_ARGS__)#define dev_level_ratelimited (dev_level, dev, fmt, ...) \ do { \