From: Duncan L. <ice...@us...> - 2006-05-16 23:06:43
|
Update of /cvsroot/ipmitool/ipmitool/lib In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv16898/lib Modified Files: ipmi_fru.c Log Message: fix formatting and compile warnings Index: ipmi_fru.c =================================================================== RCS file: /cvsroot/ipmitool/ipmitool/lib/ipmi_fru.c,v retrieving revision 1.34 retrieving revision 1.35 diff -C2 -d -r1.34 -r1.35 *** ipmi_fru.c 27 Apr 2006 18:04:09 -0000 1.34 --- ipmi_fru.c 16 May 2006 23:06:38 -0000 1.35 *************** *** 56,83 **** #define LIMIT_ALL_REQUEST_SIZE 1 extern int verbose; extern int ipmi_spd_print(struct ipmi_intf * intf, uint8_t id); static void ipmi_fru_read_to_bin(struct ipmi_intf * intf,unsigned char * pFileName, unsigned char fruId); static void ipmi_fru_write_from_bin(struct ipmi_intf * intf, unsigned char * pFileName, unsigned char fruId); ! static int ipmi_fru_upg_ekeying(struct ipmi_intf * intf,unsigned char * pFileName, unsigned char fruId); ! static int ipmi_fru_get_multirec_location_from_fru(struct ipmi_intf * intf, ! unsigned char fruId, ! struct fru_info *pFruInfo, [...1739 lines suppressed...] ! fprintf(stderr,"A Fru Id and a path/file name must be specified\n"); ! fprintf(stderr,"Ex.: ipmitool fru write 0 /root/fru.bin\n"); ! } ! } ! else if (!strncmp(argv[0], "upgEkey", 7)) { ! if ((argc >= 3) && (strlen(argv[2]) > 0)) { ! strcpy(fileName, argv[2]); ! ipmi_fru_upg_ekeying(intf,fileName,atoi(argv[1])); ! } else { ! printf("fru upgEkey <fru id> <fru file>\n"); ! } ! } ! else { ! lprintf(LOG_ERR, "Invalid FRU command: %s", argv[0]); ! lprintf(LOG_ERR, "FRU Commands: print"); ! rc = -1; ! } ! ! return rc; } |