Skip to content

Commit cb365fe

Browse files
committed
clean: Cleaning up formatting with clang-format
Running clang-format to update formatting based on our config file. Also pulling in latest library changes where the same formatting was run. Signed-off-by: Tyler Erickson <tyler.erickson@seagate.com>
1 parent 0c40a0b commit cb365fe

7 files changed

Lines changed: 13 additions & 10 deletions

File tree

include/openseachest_util_options.h

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -479,10 +479,13 @@ extern "C"
479479
SMART_ATTRIBUTES_LONG_OPT_STRING, required_argument, M_NULLPTR, 0 \
480480
}
481481

482-
#define SHOW_FARM_FLAG showFARMData
483-
#define SHOW_FARM_VAR getOptBool SHOW_FARM_FLAG = goFalse;
484-
#define SHOW_FARM_LONG_OPT_STRING "showFARM"
485-
#define SHOW_FARM_LONG_OPT { SHOW_FARM_LONG_OPT_STRING, no_argument, &SHOW_FARM_FLAG, goTrue }
482+
#define SHOW_FARM_FLAG showFARMData
483+
#define SHOW_FARM_VAR getOptBool SHOW_FARM_FLAG = goFalse;
484+
#define SHOW_FARM_LONG_OPT_STRING "showFARM"
485+
#define SHOW_FARM_LONG_OPT \
486+
{ \
487+
SHOW_FARM_LONG_OPT_STRING, no_argument, &SHOW_FARM_FLAG, goTrue \
488+
}
486489

487490
#define NVME_HEALTH_FLAG showNVMeHealthData
488491
#define NVME_HEALTH_VAR getOptBool NVME_HEALTH_FLAG = goFalse;

subprojects/wingetopt

utils/C/openSeaChest/openSeaChest_Format.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1030,7 +1030,7 @@ int main(int argc, char* argv[])
10301030
printf("operations running in parallel without issuing a device reset.\n");
10311031
printf("Not all background activities can be stopped. Some are managed by the OS and are not\n");
10321032
printf("configurable. It is recommended that a format change is done from a live/bootable\n");
1033-
printf("environment to reduce the risk of these interuptions. If the OS is unable to complete\n");
1033+
printf("environment to reduce the risk of these interruptions. If the OS is unable to complete\n");
10341034
printf("certain commands for it's background polling of the device, it may trigger a device\n");
10351035
printf("reset and interrupt the format, leaving the drive inoperable if it cannot be recovered.\n");
10361036
set_Console_Foreground_Background_Colors(CONSOLE_COLOR_BRIGHT_RED, CONSOLE_COLOR_DEFAULT);

utils/C/openSeaChest/openSeaChest_PassthroughTest.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1448,7 +1448,7 @@ static void multi_Sector_PIO_Test(tDevice* device, bool smartSupported, bool sma
14481448
// First check the Host log addresses and find an empty one.
14491449
// Attempt to write the whole thing with a pattern or random data, then read it back.
14501450
// This should tell whether all the data made it through or not.
1451-
// If this worked right away, then everything is working as expected and no hacks are necesssary
1451+
// If this worked right away, then everything is working as expected and no hacks are necessary
14521452
// If not, try setting the multiple mode to the highest supported by the drive, then try again and see if
14531453
// that changes the behavior.
14541454
// If the behavior changed and worked, then we know multisector PIO is possible up to the maximum

0 commit comments

Comments
 (0)