[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHp75VeTWUGF0huwLm9OPkDpDiDJ8vtG0W2jzoDohWEfB+L3yg@mail.gmail.com>
Date: Thu, 24 Dec 2020 14:59:34 +0200
From: Andy Shevchenko <andy.shevchenko@...il.com>
To: Ricardo Ribalda <ribalda@...omium.org>
Cc: Laurent Pinchart <laurent.pinchart@...asonboard.com>,
Mauro Carvalho Chehab <mchehab@...nel.org>,
Linux Media Mailing List <linux-media@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Joe Perches <joe@...ches.com>
Subject: Re: [PATCH v7 08/12] media: uvcvideo: Use dev_ printk aliases
On Wed, Dec 23, 2020 at 3:39 PM Ricardo Ribalda <ribalda@...omium.org> wrote:
>
> Replace all the uses of printk() and uvc_printk() with its
> equivalent dev_ alias macros.
> Modify uvc_warn_once() macro to use dev_info instead printk().
...
> +#define uvc_warn_once(_dev, warn, fmt, ...) \
> +do { \
> + if (!test_and_set_bit(warn, &(_dev)->warnings)) \
> + dev_info(&(_dev)->udev->dev, fmt, ##__VA_ARGS__); \
> +} while (0)
...
Why not to use dev_warn_once() instead?
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists