diff options
author | Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com> | 2009-09-07 04:16:20 -0400 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-09-09 16:49:56 -0400 |
commit | 273024ded7b364e1305a31bf4eb197870284f279 (patch) | |
tree | f3aee59e082b25f8920c6c7d6a3d6ea741325c71 /drivers/pci/pcie/aer/aerdrv_errprint.c | |
parent | 3472a18773bc6661ea7f8de2b4172db7e00b67e6 (diff) |
PCI: pcie, aer: flags to bits
Compact struct and codes.
Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci/pcie/aer/aerdrv_errprint.c')
-rw-r--r-- | drivers/pci/pcie/aer/aerdrv_errprint.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/pci/pcie/aer/aerdrv_errprint.c b/drivers/pci/pcie/aer/aerdrv_errprint.c index 0bb91e28d5fe..f0bdf0ff859e 100644 --- a/drivers/pci/pcie/aer/aerdrv_errprint.c +++ b/drivers/pci/pcie/aer/aerdrv_errprint.c | |||
@@ -170,10 +170,10 @@ static void aer_print_error_source(struct aer_err_info *info) | |||
170 | 170 | ||
171 | if (errmsg) | 171 | if (errmsg) |
172 | AER_PR(info, "%s\t: %s\n", errmsg, | 172 | AER_PR(info, "%s\t: %s\n", errmsg, |
173 | info->first == i ? "First" : ""); | 173 | info->first_error == i ? "First" : ""); |
174 | else | 174 | else |
175 | AER_PR(info, "Unknown Error Bit %2d \t: %s\n", | 175 | AER_PR(info, "Unknown Error Bit %2d \t: %s\n", |
176 | i, info->first == i ? "First" : ""); | 176 | i, info->first_error == i ? "First" : ""); |
177 | } | 177 | } |
178 | } | 178 | } |
179 | 179 | ||
@@ -207,7 +207,7 @@ void aer_print_error(struct pci_dev *dev, struct aer_err_info *info) | |||
207 | PCI_SLOT(dev->devfn), | 207 | PCI_SLOT(dev->devfn), |
208 | PCI_FUNC(dev->devfn)); | 208 | PCI_FUNC(dev->devfn)); |
209 | 209 | ||
210 | if (info->flags & AER_TLP_HEADER_VALID_FLAG) { | 210 | if (info->tlp_header_valid) { |
211 | unsigned char *tlp = (unsigned char *) &info->tlp; | 211 | unsigned char *tlp = (unsigned char *) &info->tlp; |
212 | AER_PR(info, "TLP Header:\n"); | 212 | AER_PR(info, "TLP Header:\n"); |
213 | AER_PR(info, "%02x%02x%02x%02x %02x%02x%02x%02x" | 213 | AER_PR(info, "%02x%02x%02x%02x %02x%02x%02x%02x" |