Commit bf5144a
committed
ACPI: PCI: IRQ: Consolidate printing diagnostic messages
The code in pci_irq.c prints diagnostic messages using different
and inconsistent methods. The majority of them are printed with
the help of the dev_*() familiy of logging functions, but
ACPI_DEBUG_PRINT() and ACPI_DEBUG_PRINT_RAW() are still used in
some places which requires the ACPICA debug to be enabled
additionally which is a nuisance and one message is printed
using the raw printk().
To consolidate the printing of messages in that code, convert all of
the ACPI_DEBUG_PRINT() instances in it into dev_dbg(), which is
consistent with the way the other messages are printed by it,
replace the only ACPI_DEBUG_PRINT_RAW() instance with pr_debug() and
make it use pr_warn() istead of printk(KERN_WARNING ).
Also add a pr_fmt() definition to that file and drop the
_COMPONENT and ACPI_MODULE_NAME() definitions that are not used
any more after the above changes.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Hanjun Guo <guohanjun@huawei.com>1 parent a38fd87 commit bf5144a
1 file changed
Lines changed: 10 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | 26 | | |
31 | 27 | | |
32 | 28 | | |
| |||
126 | 122 | | |
127 | 123 | | |
128 | 124 | | |
129 | | - | |
| 125 | + | |
130 | 126 | | |
131 | 127 | | |
132 | 128 | | |
| |||
191 | 187 | | |
192 | 188 | | |
193 | 189 | | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
200 | 193 | | |
201 | 194 | | |
202 | 195 | | |
| |||
307 | 300 | | |
308 | 301 | | |
309 | 302 | | |
310 | | - | |
311 | | - | |
| 303 | + | |
312 | 304 | | |
313 | 305 | | |
314 | 306 | | |
| |||
324 | 316 | | |
325 | 317 | | |
326 | 318 | | |
327 | | - | |
328 | | - | |
329 | | - | |
| 319 | + | |
330 | 320 | | |
331 | 321 | | |
332 | 322 | | |
333 | 323 | | |
334 | 324 | | |
335 | 325 | | |
336 | 326 | | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
| 327 | + | |
| 328 | + | |
341 | 329 | | |
342 | 330 | | |
343 | 331 | | |
| |||
413 | 401 | | |
414 | 402 | | |
415 | 403 | | |
416 | | - | |
417 | | - | |
418 | | - | |
| 404 | + | |
419 | 405 | | |
420 | 406 | | |
421 | 407 | | |
| |||
0 commit comments