From: Zdenek S. <st...@us...> - 2013-03-21 14:07:52
|
Update of /cvsroot/ipmitool/ipmitool/lib In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv21611/lib Modified Files: ipmi_delloem.c Log Message: ID: 3608261 - 'lib/ipmi_delloem.c' - code formatting Commit changes code formatting in 'lib/ipmi_delloem.c' to be more consistent with the rest of ipmitool's code. No functional changes are intended. Clean up isn't perfect, but it's one of steps in long term effort. Index: ipmi_delloem.c =================================================================== RCS file: /cvsroot/ipmitool/ipmitool/lib/ipmi_delloem.c,v retrieving revision 1.27 retrieving revision 1.28 diff -C2 -d -r1.27 -r1.28 *** ipmi_delloem.c 16 Mar 2013 21:15:21 -0000 1.27 --- ipmi_delloem.c 21 Mar 2013 14:07:50 -0000 1.28 *************** *** 1,39 **** - /****************************************************************** - Copyright (c) 2008, Dell Inc - All rights reserved. - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - - Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation [...8769 lines suppressed...] ! } else if (sscanf(argv[current_arg], "%*x:%x:%x.%x", &b,&d,&f) == 3) { ! /* We have bus/dev/function of drive */ ! current_arg++; ! ipmi_getdrivemap (intf, b, d, f, &bayId, &slotId); ! } else if (sscanf(argv[current_arg], "%x:%x.%x", &b,&d,&f) == 3) { ! /* We have bus/dev/function of drive */ ! current_arg++; ! } else { ! ipmi_setled_usage(); ! return -1; ! } ! /* Get mask of SES flags */ ! mask = ipmi_getsesmask(argc, argv); ! /* Get drive mapping */ ! if (ipmi_getdrivemap (intf, b, d, f, &bayId, &slotId)) { ! return -1; ! } ! /* Set drive LEDs */ ! return ipmi_setled_state (intf, bayId, slotId, mask); } |