Skip to contentSkip to conversation

video: udlfb: (not only) Logging cleanup

PATCH Bartlomiej Zolnierkiewicz 1 participant 1 message Jan 4, 2018 Framebuffer layer

lore
Share & tools
lore
#0 lore raw
Quoted 11 lines · Ladislav Michl

This patchset is a side product of debugging on unreliable USB host where devices saw a lot of disconnects. It turned out that udlfb logging is just too noisy to be usefull as produced syslog is hard to read.

Hence this attempt to clean things up.

Comments and suggestions welcome and appreciated, as always.

Ladislav Michl (6):
video: udlfb: Do not name private data 'dev'

This patch no longer applies cleanly after following patches:

11ab5a6 video: udlfb: Delete an unnecessary return statement in two functions 74fb251 video: udlfb: Improve a size determination in dlfb_alloc_urb_list()

have been merged into fbdev-for-next.

Quoted 1 line

video: udlfb: Remove unnecessary 'return'

I've already applied identical patch from Markus which was posted some time earlier.

Quoted 1 line

video: udlfb: Remove unnecessary local variable

Please make this patch #1 in the series.

Quoted 1 line

video: udlfb: Delete error messages for failed allocations

In one place this patch removes the information about the device for which the allocation fails and generally I would prefer to still have the information about devices for which allocation fails (so please consider dropping this patch and converting relevant places to use dev_*() logging functions).

Quoted 1 line

video: udlfb: Remove redundant gdev variable

Please make this patch #2 in the series.

Quoted 1 line

video: udlfb: Switch from the pr_*() to the dev_*() logging functions

This patch also removes some log entries completely and I would prefer such changes to be split into a separate pre-patch (please also give a valid rationale for the removal in the patch description).

Quoted 3 lines
 drivers/video/fbdev/udlfb.c | 617 ++++++++++++++++++++------------------------
 include/video/udlfb.h       |   3 +-
 2 files changed, 284 insertions(+), 336 deletions(-)

Please rebase, fix and resubmit, thanks.

Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics