On 9/1/19 6:25 PM, Fredrik Noring wrote: > fb_warn_once() is a variant of fb_warn(), to print a warning only once. > > Signed-off-by: Fredrik Noring <noring@nocrew.org> > --- > include/linux/fb.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/include/linux/fb.h b/include/linux/fb.h > index 303771264644..19f5118e34ea 100644 > --- a/include/linux/fb.h > +++ b/include/linux/fb.h > @@ -818,6 +818,8 @@ extern int fb_find_mode(struct fb_var_screeninfo *var, > pr_notice("fb%d: " fmt, (fb_info)->node, ##__VA_ARGS__) > #define fb_warn(fb_info, fmt, ...) \ > pr_warn("fb%d: " fmt, (fb_info)->node, ##__VA_ARGS__) > +#define fb_warn_once(fb_info, fmt, ...) \ > + pr_warn_once("fb%d: " fmt, (fb_info)->node, ##__VA_ARGS__) > #define fb_info(fb_info, fmt, ...) \ > pr_info("fb%d: " fmt, (fb_info)->node, ##__VA_ARGS__) > #define fb_dbg(fb_info, fmt, ...) \ > Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
diff --git a/include/linux/fb.h b/include/linux/fb.h index 303771264644..19f5118e34ea 100644 --- a/include/linux/fb.h +++ b/include/linux/fb.h @@ -818,6 +818,8 @@ extern int fb_find_mode(struct fb_var_screeninfo *var, pr_notice("fb%d: " fmt, (fb_info)->node, ##__VA_ARGS__) #define fb_warn(fb_info, fmt, ...) \ pr_warn("fb%d: " fmt, (fb_info)->node, ##__VA_ARGS__) +#define fb_warn_once(fb_info, fmt, ...) \ + pr_warn_once("fb%d: " fmt, (fb_info)->node, ##__VA_ARGS__) #define fb_info(fb_info, fmt, ...) \ pr_info("fb%d: " fmt, (fb_info)->node, ##__VA_ARGS__) #define fb_dbg(fb_info, fmt, ...) \
fb_warn_once() is a variant of fb_warn(), to print a warning only once. Signed-off-by: Fredrik Noring <noring@nocrew.org> --- include/linux/fb.h | 2 ++ 1 file changed, 2 insertions(+)