Skip to content

Commit

Permalink
scsi: mpt3sas: Convert uses of pr_<level> with MPT3SAS_FMT to ioc_<le…
Browse files Browse the repository at this point in the history
…vel>

[ Upstream commit 919d8a3 ]

Use a more common logging style.

Done using the perl script below and some typing

$ git grep --name-only -w MPT3SAS_FMT -- "*.c" | \
  xargs perl -i -e 'local $/; while (<>) { s/\bpr_(info|err|notice|warn)\s*\(\s*MPT3SAS_FMT\s*("[^"]+"(?:\s*\\?\s*"[^"]+"\s*){0,5}\s*),\s*ioc->name\s*/ioc_\1(ioc, \2/g; print;}'

Miscellanea for these conversions:

o Coalesce formats
o Realign arguments
o Remove unnecessary parentheses
o Use casts to u64 instead of unsigned long long where appropriate
o Convert broken pr_info uses to pr_cont
o Fix broken format string concatenation with line continuations and
  excess whitespace

Signed-off-by: Joe Perches <[email protected]>
Acked-by: Suganath Prabu <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Stable-dep-of: 78316e9 ("scsi: mpt3sas: Fix possible resource leaks in mpt3sas_transport_port_add()")
Signed-off-by: Sasha Levin <[email protected]>
  • Loading branch information
JoePerches authored and Sasha Levin committed Jan 16, 2023
1 parent f8f718f commit fffefb3
Show file tree
Hide file tree
Showing 7 changed files with 1,533 additions and 1,982 deletions.
Loading

0 comments on commit fffefb3

Please sign in to comment.