Skip to content

Commit 7270a60

Browse files
Robert Richterrric-net
Robert Richter
authored andcommitted
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 <[email protected]> Acked-by: Rob Herring <[email protected]> Acked-by: Borislav Petkov <[email protected]> Signed-off-by: Robert Richter <[email protected]>
1 parent 41ec0e8 commit 7270a60

File tree

3 files changed

+10
-13
lines changed

3 files changed

+10
-13
lines changed

drivers/edac/edac_device.c

+3-6
Original file line numberDiff line numberDiff line change
@@ -530,12 +530,9 @@ int edac_device_add_device(struct edac_device_ctl_info *edac_dev)
530530

531531
/* Report action taken */
532532
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));
539536

540537
mutex_unlock(&device_ctls_mutex);
541538
return 0;

drivers/edac/edac_mc.c

+4-2
Original file line numberDiff line numberDiff line change
@@ -788,8 +788,10 @@ int edac_mc_add_mc(struct mem_ctl_info *mci)
788788
}
789789

790790
/* 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));
793795

794796
edac_mc_owner = mci->mod_name;
795797

drivers/edac/edac_pci.c

+3-5
Original file line numberDiff line numberDiff line change
@@ -358,11 +358,9 @@ int edac_pci_add_device(struct edac_pci_ctl_info *pci, int edac_idx)
358358
}
359359

360360
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));
366364

367365
mutex_unlock(&edac_pci_ctls_mutex);
368366
return 0;

0 commit comments

Comments
 (0)