From: Jean-Michel A. <au...@us...> - 2006-10-06 17:47:20
|
Update of /cvsroot/ipmitool/ipmitool/lib In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv29855/lib Modified Files: ipmi_lanp.c Log Message: - Fix a bug with command ipmitool lan stats get 1. Stats on channel 1 is always rejected while channel 1 can be lan. command printconf and print is OK. Index: ipmi_lanp.c =================================================================== RCS file: /cvsroot/ipmitool/ipmitool/lib/ipmi_lanp.c,v retrieving revision 1.52 retrieving revision 1.53 diff -C2 -d -r1.52 -r1.53 *** ipmi_lanp.c 21 Sep 2006 19:53:33 -0000 1.52 --- ipmi_lanp.c 6 Oct 2006 17:47:10 -0000 1.53 *************** *** 2152,2156 **** chan = (uint8_t)strtol(argv[2], NULL, 0); ! if (chan < 2 || chan > IPMI_CHANNEL_NUMBER_MAX) { lprintf(LOG_ERR, "Invalid channel: %d", chan); --- 2152,2156 ---- chan = (uint8_t)strtol(argv[2], NULL, 0); ! if (chan < 1 || chan > IPMI_CHANNEL_NUMBER_MAX) { lprintf(LOG_ERR, "Invalid channel: %d", chan); |