[lkml]   [2021]   [May]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] rtc: max77686: Remove some dead code
On 09/05/2021 17:06, Alexandre Belloni wrote:
> On 08/05/2021 18:06:03-0600, Edmundo Carmona Antoranz wrote:
>> On Sat, May 8, 2021 at 10:59 AM Christophe JAILLET
>> <> wrote:
>>>> Following the recent conversations, I think it might make sense to do
>>>> dev_err(&pdev->dev, "Failed to register RTC device: %pe\n", info->rtc_dev);
>>>> Is that right?
>>> Yes, it is right, but it should be done in another patch.
>>> Would you like to give it a try?
>> Sure, I'll have the patch ready to send it when I see yours on next.
> Does it make sense to print anything at all? Who would use the output?
> Is anyone actually going to read it?

If the RTC core does not print the message, it should be
dev_err_probe(). However the first is recently preferred - RTC core
should do it for all drivers. I find such error messages useful - helps
easily spotting regressions via dmesg -l err.

Best regards,

 \ /
  Last update: 2021-05-10 15:02    [W:0.080 / U:0.668 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site