2017-11-06 20:55:17

by Andreas Noever

[permalink] [raw]
Subject: Re: Excessive logging in thunderbolt driver

On Wed, Nov 1, 2017 at 8:41 AM, Mika Westerberg
<[email protected]> wrote:
> On Tue, Oct 31, 2017 at 10:45:46PM +0100, Stephen Hemminger wrote:
>> The thunderbolt driver needs to stop logging.
>> All these debug messages and the laptop is on battery with no devices connected.
>> (I did use a USB key, but that is not a thunderbolt device).
>>
>> IMHO a production driver should log nothing in normal operation.
>> If you insist, the one message when device is found on discovery/probe
>> is allowed at INFO level.
>>
>> All the rest should just go away, or be turned into pr_debug().
>
> I agree and it is on my todo list for this driver.

Logging all the details was quite useful in the beginning to make the
driver work on hardware that was not available to me. But now that
thinks are mostly working I agree that we should turn the logging way
down.

From 1582848811837518358@xxx Wed Nov 01 07:44:18 +0000 2017
X-GM-THRID: 1582811248246964042
X-Gmail-Labels: Inbox,Category Forums