diff options
Diffstat (limited to 'drivers/edac/amd64_edac.h')
-rw-r--r-- | drivers/edac/amd64_edac.h | 29 |
1 files changed, 22 insertions, 7 deletions
diff --git a/drivers/edac/amd64_edac.h b/drivers/edac/amd64_edac.h index 76760a8043ca..f15e2b257e72 100644 --- a/drivers/edac/amd64_edac.h +++ b/drivers/edac/amd64_edac.h | |||
@@ -74,11 +74,26 @@ | |||
74 | #include "edac_core.h" | 74 | #include "edac_core.h" |
75 | #include "mce_amd.h" | 75 | #include "mce_amd.h" |
76 | 76 | ||
77 | #define amd64_printk(level, fmt, arg...) \ | 77 | #define amd64_debug(fmt, arg...) \ |
78 | edac_printk(level, "amd64", fmt, ##arg) | 78 | edac_printk(KERN_DEBUG, "amd64", fmt, ##arg) |
79 | 79 | ||
80 | #define amd64_mc_printk(mci, level, fmt, arg...) \ | 80 | #define amd64_info(fmt, arg...) \ |
81 | edac_mc_chipset_printk(mci, level, "amd64", fmt, ##arg) | 81 | edac_printk(KERN_INFO, "amd64", fmt, ##arg) |
82 | |||
83 | #define amd64_notice(fmt, arg...) \ | ||
84 | edac_printk(KERN_NOTICE, "amd64", fmt, ##arg) | ||
85 | |||
86 | #define amd64_warn(fmt, arg...) \ | ||
87 | edac_printk(KERN_WARNING, "amd64", fmt, ##arg) | ||
88 | |||
89 | #define amd64_err(fmt, arg...) \ | ||
90 | edac_printk(KERN_ERR, "amd64", fmt, ##arg) | ||
91 | |||
92 | #define amd64_mc_warn(mci, fmt, arg...) \ | ||
93 | edac_mc_chipset_printk(mci, KERN_WARNING, "amd64", fmt, ##arg) | ||
94 | |||
95 | #define amd64_mc_err(mci, fmt, arg...) \ | ||
96 | edac_mc_chipset_printk(mci, KERN_ERR, "amd64", fmt, ##arg) | ||
82 | 97 | ||
83 | /* | 98 | /* |
84 | * Throughout the comments in this code, the following terms are used: | 99 | * Throughout the comments in this code, the following terms are used: |
@@ -129,7 +144,7 @@ | |||
129 | * sections 3.5.4 and 3.5.5 for more information. | 144 | * sections 3.5.4 and 3.5.5 for more information. |
130 | */ | 145 | */ |
131 | 146 | ||
132 | #define EDAC_AMD64_VERSION " Ver: 3.3.0 " __DATE__ | 147 | #define EDAC_AMD64_VERSION "v3.3.0" |
133 | #define EDAC_MOD_STR "amd64_edac" | 148 | #define EDAC_MOD_STR "amd64_edac" |
134 | 149 | ||
135 | #define EDAC_MAX_NUMNODES 8 | 150 | #define EDAC_MAX_NUMNODES 8 |
@@ -527,8 +542,8 @@ static inline int amd64_read_pci_cfg_dword(struct pci_dev *pdev, int offset, | |||
527 | 542 | ||
528 | err = pci_read_config_dword(pdev, offset, val); | 543 | err = pci_read_config_dword(pdev, offset, val); |
529 | if (err) | 544 | if (err) |
530 | amd64_printk(KERN_WARNING, "%s: error reading F%dx%x.\n", | 545 | amd64_warn("%s: error reading F%dx%x.\n", |
531 | func, PCI_FUNC(pdev->devfn), offset); | 546 | func, PCI_FUNC(pdev->devfn), offset); |
532 | 547 | ||
533 | return err; | 548 | return err; |
534 | } | 549 | } |