ID:355 - Move section_id from ipmi_fru. to ipmi_fru.c

... since that's the only place where it's used right now. It might be worth to
rework this concept.
This commit is contained in:
Zdenek Styblik 2016-05-29 21:03:25 +02:00
parent fe2fcaf3ef
commit 681bc21d32
2 changed files with 7 additions and 7 deletions

View File

@ -610,13 +610,6 @@ typedef struct ipmi_fru_bloc {
uint8_t blocId[32];
} t_ipmi_fru_bloc;
static const char *section_id[4] = {
"Internal Use Section",
"Chassis Section",
"Board Section",
"Product Section"
};
int ipmi_fru_main(struct ipmi_intf *intf, int argc, char **argv);
int ipmi_fru_print(struct ipmi_intf *intf, struct sdr_record_fru_locator *fru);

View File

@ -50,6 +50,13 @@
#define FRU_MULTIREC_CHUNK_SIZE (255 + sizeof(struct fru_multirec_header))
static const char *section_id[4] = {
"Internal Use Section",
"Chassis Section",
"Board Section",
"Product Section"
};
/* From lib/dimm_spd.c: */
int
ipmi_spd_print_fru(struct ipmi_intf * intf, uint8_t id);