]> git.baikalelectronics.ru Git - kernel.git/commit
sunhme: Combine continued messages
authorSean Anderson <seanga2@gmail.com>
Sat, 24 Sep 2022 01:53:37 +0000 (21:53 -0400)
committerJakub Kicinski <kuba@kernel.org>
Tue, 27 Sep 2022 00:45:38 +0000 (17:45 -0700)
commita57b7460ae494bb2b65b5fbfc2c03d2db90d5ddf
treecb65b7db971b4db51e60af78e0dd51fd6aa74190
parent16ec1b835f1db38c6847dbea38f746b00140f0d6
sunhme: Combine continued messages

This driver seems to have been written under the assumption that messages
can be continued arbitrarily. I'm not when this changed (if ever), but such
ad-hoc continuations are liable to be rudely interrupted. Convert all such
instances to single prints. This loses a bit of timing information (such as
when a line was constructed piecemeal as the function executed), but it's
easy to add a few prints if necessary. This also adds newlines to the ends
of any prints without them.

Since (almost every) debug print included the name of the function, include
it automatically.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/sun/sunhme.c