aboutsummaryrefslogtreecommitdiff
path: root/gdbserver/utils.cc
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2023-02-08 15:36:23 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2023-02-08 15:46:02 -0500
commitc583a2520616c2736cffc389c89a48b159366e6c (patch)
treeb4925f26506fcee96c16119431c01760f05db95d /gdbserver/utils.cc
parentca7f92c2f15b86b09c4a8ad14806bef666308d31 (diff)
downloadbinutils-users/simark/clang-format.zip
binutils-users/simark/clang-format.tar.gz
binutils-users/simark/clang-format.tar.bz2
Run clang-format.shusers/simark/clang-format
Change-Id: Ia948cc26d534b0dd02702244d52434b1a2093968
Diffstat (limited to 'gdbserver/utils.cc')
-rw-r--r--gdbserver/utils.cc22
1 files changed, 12 insertions, 10 deletions
diff --git a/gdbserver/utils.cc b/gdbserver/utils.cc
index a6f5bd7..3f5a23b 100644
--- a/gdbserver/utils.cc
+++ b/gdbserver/utils.cc
@@ -19,11 +19,11 @@
#include "server.h"
#ifdef IN_PROCESS_AGENT
-# define PREFIX "ipa: "
-# define TOOLNAME "GDBserver in-process agent"
+#define PREFIX "ipa: "
+#define TOOLNAME "GDBserver in-process agent"
#else
-# define PREFIX "gdbserver: "
-# define TOOLNAME "GDBserver"
+#define PREFIX "gdbserver: "
+#define TOOLNAME "GDBserver"
#endif
/* Generally useful subroutines used throughout the program. */
@@ -46,8 +46,8 @@ void
malloc_failure (long size)
{
fprintf (stderr,
- PREFIX "ran out of memory while trying to allocate %lu bytes\n",
- (unsigned long) size);
+ PREFIX "ran out of memory while trying to allocate %lu bytes\n",
+ (unsigned long) size);
abort_or_exit ();
}
@@ -101,8 +101,9 @@ vwarning (const char *string, va_list args)
void
internal_verror (const char *file, int line, const char *fmt, va_list args)
{
- fprintf (stderr, "\
-%s:%d: A problem internal to " TOOLNAME " has been detected.\n", file, line);
+ fprintf (stderr, "\
+%s:%d: A problem internal to " TOOLNAME " has been detected.\n",
+ file, line);
vfprintf (stderr, fmt, args);
fprintf (stderr, "\n");
abort_or_exit ();
@@ -113,8 +114,9 @@ internal_verror (const char *file, int line, const char *fmt, va_list args)
void
internal_vwarning (const char *file, int line, const char *fmt, va_list args)
{
- fprintf (stderr, "\
-%s:%d: A problem internal to " TOOLNAME " has been detected.\n", file, line);
+ fprintf (stderr, "\
+%s:%d: A problem internal to " TOOLNAME " has been detected.\n",
+ file, line);
vfprintf (stderr, fmt, args);
fprintf (stderr, "\n");
}