summaryrefslogtreecommitdiffstats
path: root/programmer.h
diff options
context:
space:
mode:
authorStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2011-05-26 01:35:19 +0000
committerStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2011-05-26 01:35:19 +0000
commit7bcacb1bdb72f60f37a67883f871bbef9ec8c943 (patch)
tree8b540af2f9c993133ddb6cd3a513289dfbe7f549 /programmer.h
parentc0aaf954874841c839c7131505759b9403ec7e4b (diff)
downloadflashrom-7bcacb1bdb72f60f37a67883f871bbef9ec8c943.tar.gz
flashrom-7bcacb1bdb72f60f37a67883f871bbef9ec8c943.tar.bz2
flashrom-7bcacb1bdb72f60f37a67883f871bbef9ec8c943.zip
Eliminate magic numbers indicating maximum column sizes in print.c
Without this the magic numbers need to be kept in sync with the maximum length of the strings printed in the corresponding column. if not, an overflow and a nasty ' '-storm occur on executing flashrom -L. Corresponding to flashrom svn r1318. Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Diffstat (limited to 'programmer.h')
-rw-r--r--programmer.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/programmer.h b/programmer.h
index b68aa883f..e1147f110 100644
--- a/programmer.h
+++ b/programmer.h
@@ -145,7 +145,7 @@ struct bitbang_spi_master {
struct penable {
uint16_t vendor_id;
uint16_t device_id;
- int status;
+ int status; /* OK=0 and NT=1 are defines only. Beware! */
const char *vendor_name;
const char *device_name;
int (*doit) (struct pci_dev *dev, const char *name);
@@ -174,10 +174,10 @@ struct board_pciid_enable {
uint16_t second_card_vendor;
uint16_t second_card_device;
- /* Pattern to match DMI entries */
+ /* Pattern to match DMI entries. May be NULL. */
const char *dmi_pattern;
- /* The vendor / part name from the coreboot table. */
+ /* The vendor / part name from the coreboot table. May be NULL. */
const char *lb_vendor;
const char *lb_part;
@@ -188,7 +188,7 @@ struct board_pciid_enable {
int max_rom_decode_parallel;
int status;
- int (*enable) (void);
+ int (*enable) (void); /* May be NULL. */
};
extern const struct board_pciid_enable board_pciid_enables[];