coding style: avoid unnecessary line continuations
Line continuation, adding a backslash as last char of the line, is
requested in multi-line macro definition, but is not necessary in
the rest of C code.
Remove it where present.
Identified by checkpatch script from Linux kernel v5.1 using the
command
find src/ -type f -exec ./tools/scripts/checkpatch.pl \
-q --types LINE_CONTINUATIONS -f {} \;
Change-Id: Id0c69e93456731717a7b290b16580e9f8ae741bc
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/5619
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Tested-by: jenkins
This commit is contained in:
@@ -1004,7 +1004,7 @@ static int gdb_new_connection(struct connection *connection)
|
||||
continue;
|
||||
retval = get_flash_bank_by_num(i, &p);
|
||||
if (retval != ERROR_OK) {
|
||||
LOG_ERROR("Connect failed. Consider setting up a gdb-attach event for the target " \
|
||||
LOG_ERROR("Connect failed. Consider setting up a gdb-attach event for the target "
|
||||
"to prepare target for GDB connect, or use 'gdb_memory_map disable'.");
|
||||
return retval;
|
||||
}
|
||||
@@ -2857,7 +2857,7 @@ static bool gdb_handle_vcont_packet(struct connection *connection, const char *p
|
||||
if (gdb_connection->sync) {
|
||||
gdb_connection->sync = false;
|
||||
if (ct->state == TARGET_HALTED) {
|
||||
LOG_DEBUG("stepi ignored. GDB will now fetch the register state " \
|
||||
LOG_DEBUG("stepi ignored. GDB will now fetch the register state "
|
||||
"from the target.");
|
||||
gdb_sig_halted(connection);
|
||||
log_remove_callback(gdb_log_callback, connection);
|
||||
@@ -3330,7 +3330,7 @@ static int gdb_input_inner(struct connection *connection)
|
||||
"Waiting for target to halt.");
|
||||
already_running = true;
|
||||
} else if (target->state != TARGET_HALTED) {
|
||||
LOG_WARNING("The target is not in the halted nor running stated, " \
|
||||
LOG_WARNING("The target is not in the halted nor running stated, "
|
||||
"stepi/continue ignored.");
|
||||
nostep = true;
|
||||
} else if ((packet[0] == 's') && gdb_con->sync) {
|
||||
@@ -3339,7 +3339,7 @@ static int gdb_input_inner(struct connection *connection)
|
||||
* make only the single stepping have the sync feature...
|
||||
*/
|
||||
nostep = true;
|
||||
LOG_DEBUG("stepi ignored. GDB will now fetch the register state " \
|
||||
LOG_DEBUG("stepi ignored. GDB will now fetch the register state "
|
||||
"from the target.");
|
||||
}
|
||||
gdb_con->sync = false;
|
||||
|
||||
Reference in New Issue
Block a user