Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

edac: Unify reporting of device info for device, mc and pci

Log messages slightly differ between edac subsystems. Unifying it.

Signed-off-by: Robert Richter <robert.richter@linaro.org>
Acked-by: Rob Herring <rob.herring@calxeda.com>
Acked-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Robert Richter <rric@kernel.org>

authored by

Robert Richter and committed by
Robert Richter
7270a608 41ec0e8d

+10 -13
+3 -6
drivers/edac/edac_device.c
··· 530 530 531 531 /* Report action taken */ 532 532 edac_device_printk(edac_dev, KERN_INFO, 533 - "Giving out device to module '%s' controller " 534 - "'%s': DEV '%s' (%s)\n", 535 - edac_dev->mod_name, 536 - edac_dev->ctl_name, 537 - edac_dev_name(edac_dev), 538 - edac_op_state_to_string(edac_dev->op_state)); 533 + "Giving out device to module %s controller %s: DEV %s (%s)\n", 534 + edac_dev->mod_name, edac_dev->ctl_name, edac_dev->dev_name, 535 + edac_op_state_to_string(edac_dev->op_state)); 539 536 540 537 mutex_unlock(&device_ctls_mutex); 541 538 return 0;
+4 -2
drivers/edac/edac_mc.c
··· 788 788 } 789 789 790 790 /* Report action taken */ 791 - edac_mc_printk(mci, KERN_INFO, "Giving out device to '%s' '%s':" 792 - " DEV %s\n", mci->mod_name, mci->ctl_name, edac_dev_name(mci)); 791 + edac_mc_printk(mci, KERN_INFO, 792 + "Giving out device to module %s controller %s: DEV %s (%s)\n", 793 + mci->mod_name, mci->ctl_name, mci->dev_name, 794 + edac_op_state_to_string(mci->op_state)); 793 795 794 796 edac_mc_owner = mci->mod_name; 795 797
+3 -5
drivers/edac/edac_pci.c
··· 358 358 } 359 359 360 360 edac_pci_printk(pci, KERN_INFO, 361 - "Giving out device to module '%s' controller '%s':" 362 - " DEV '%s' (%s)\n", 363 - pci->mod_name, 364 - pci->ctl_name, 365 - edac_dev_name(pci), edac_op_state_to_string(pci->op_state)); 361 + "Giving out device to module %s controller %s: DEV %s (%s)\n", 362 + pci->mod_name, pci->ctl_name, pci->dev_name, 363 + edac_op_state_to_string(pci->op_state)); 366 364 367 365 mutex_unlock(&edac_pci_ctls_mutex); 368 366 return 0;