From: Tankut Baris Aktemur Date: Thu, 11 Apr 2024 11:00:43 +0000 (+0200) Subject: gdb: fix format in remote.c X-Git-Tag: gdb-15-branchpoint~431 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9df979cab7676539918c6bcd24aa2c1bbb20b997;p=thirdparty%2Fbinutils-gdb.git gdb: fix format in remote.c Fix space-before-parenthesis format at three spots in remote.c. --- diff --git a/gdb/remote.c b/gdb/remote.c index a09ba4d715d..5c9fdebcdbe 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -2739,14 +2739,14 @@ remote_target::remote_query_attached (int pid) getpkt (&rs->buf); packet_result result = m_features.packet_ok (rs->buf, PACKET_qAttached); - switch (result.status()) + switch (result.status ()) { case PACKET_OK: if (strcmp (rs->buf.data (), "1") == 0) return 1; break; case PACKET_ERROR: - warning (_("Remote failure reply: %s"), result.err_msg()); + warning (_("Remote failure reply: %s"), result.err_msg ()); break; case PACKET_UNKNOWN: break; @@ -3107,7 +3107,7 @@ remote_target::set_syscall_catchpoint (int pid, bool needed, int any_count, putpkt (catch_packet); getpkt (&rs->buf); packet_result result = m_features.packet_ok (rs->buf, PACKET_QCatchSyscalls); - if (result.status() == PACKET_OK) + if (result.status () == PACKET_OK) return 0; else return -1;