Follow OpenOCD style guide.

Change-Id: I1105c9d570890423f2712919bdaba26fdd09acab
This commit is contained in:
Tim Newsome 2019-02-21 12:45:25 -08:00
parent 7072f92513
commit 6325701062
1 changed files with 3 additions and 4 deletions

View File

@ -222,13 +222,12 @@ COMMAND_HANDLER(handle_log_output_command)
{
if (CMD_ARGC == 1) {
FILE *file = NULL;
if (!strcmp(CMD_ARGV[0], ">stdout")) {
if (!strcmp(CMD_ARGV[0], ">stdout"))
file = stdout;
} else if (!strcmp(CMD_ARGV[0], ">stderr")) {
else if (!strcmp(CMD_ARGV[0], ">stderr"))
file = stderr;
} else {
else
file = fopen(CMD_ARGV[0], "w");
}
if (file == NULL) {
LOG_ERROR("failed to open output log '%s'", CMD_ARGV[0]);
return ERROR_FAIL;